Fix MXCC error register (Robert Reif)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3662 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
blueswir1 2007-11-17 08:19:57 +00:00
parent 295db11371
commit bbf7d96b45

View File

@ -446,13 +446,11 @@ void helper_st_asi(int asi, int size)
DPRINTF_MXCC("%08x: unimplemented access size: %d\n", T0, size);
break;
case 0x01c00e00: /* MXCC error register */
// writing a 1 bit clears the error
if (size == 8)
env->mxccregs[6] = ((uint64_t)T1 << 32) | T2;
env->mxccregs[6] &= ~(((uint64_t)T1 << 32) | T2);
else
DPRINTF_MXCC("%08x: unimplemented access size: %d\n", T0, size);
if (env->mxccregs[6] == 0xffffffffffffffffULL) {
// this is probably a reset
}
break;
case 0x01c00f00: /* MBus port address register */
if (size == 8)