summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author yz70s <yz70s@users.noreply.github.com>2019-06-12 09:00:19 +0200
committer yz70s <yz70s@users.noreply.github.com>2019-06-12 09:01:41 +0200
commitd8110b3499aaa9b4dc2e841665989702e7d2d05f (patch)
treeeb5ad191a5fb49b3dbc3daae79a8271675e44514
parentc1ac6705794c9ce275fc438152806fb6b13f4df8 (diff)
Remove some msvc warnings (nw)
-rw-r--r--src/devices/cpu/i386/athlon.cpp3
-rw-r--r--src/devices/cpu/i386/i386.cpp5
2 files changed, 8 insertions, 0 deletions
diff --git a/src/devices/cpu/i386/athlon.cpp b/src/devices/cpu/i386/athlon.cpp
index f8f419577f0..9448bfdd2f1 100644
--- a/src/devices/cpu/i386/athlon.cpp
+++ b/src/devices/cpu/i386/athlon.cpp
@@ -389,6 +389,7 @@ uint16_t athlonxp_device::READ16PL(uint32_t ea, uint8_t privilege)
switch (ea & 3)
{
case 0:
+ default:
if(!translate_address(privilege,TRANSLATE_READ,&address,&error))
PF_THROW(error);
@@ -429,6 +430,7 @@ uint32_t athlonxp_device::READ32PL(uint32_t ea, uint8_t privilege)
switch (ea & 3)
{
case 0:
+ default:
if(!translate_address(privilege,TRANSLATE_READ,&address,&error))
PF_THROW(error);
@@ -473,6 +475,7 @@ uint64_t athlonxp_device::READ64PL(uint32_t ea, uint8_t privilege)
switch (ea & 3)
{
case 0:
+ default:
value = READ32PL(ea, privilege);
value |= uint64_t(READ32PL(ea + 2, privilege)) << 32;
break;
diff --git a/src/devices/cpu/i386/i386.cpp b/src/devices/cpu/i386/i386.cpp
index c791e0b36a1..7a7529aed40 100644
--- a/src/devices/cpu/i386/i386.cpp
+++ b/src/devices/cpu/i386/i386.cpp
@@ -400,6 +400,7 @@ uint16_t i386_device::READ16PL(uint32_t ea, uint8_t privilege)
{
case 0:
case 2:
+ default:
if(!translate_address(privilege,TRANSLATE_READ,&address,&error))
PF_THROW(error);
@@ -432,6 +433,7 @@ uint32_t i386_device::READ32PL(uint32_t ea, uint8_t privilege)
switch (ea & 3)
{
case 0:
+ default:
if(!translate_address(privilege,TRANSLATE_READ,&address,&error))
PF_THROW(error);
@@ -476,6 +478,7 @@ uint64_t i386_device::READ64PL(uint32_t ea, uint8_t privilege)
switch (ea & 3)
{
case 0:
+ default:
value = READ32PL(ea, privilege);
value |= uint64_t(READ32PL(ea + 2, privilege)) << 32;
break;
@@ -1155,6 +1158,7 @@ uint16_t i386_device::READPORT16(offs_t port)
{
case 0:
case 2:
+ default:
check_ioperm(port, 3);
value = m_io->read_word(port);
break;
@@ -1202,6 +1206,7 @@ uint32_t i386_device::READPORT32(offs_t port)
switch (port & 3)
{
case 0:
+ default:
check_ioperm(port, 0xf);
value = m_io->read_dword(port);
break;