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