Commit bbf7d96b451ea3b6339520b974793f121cfd2c19

Authored by blueswir1
1 parent 295db113

Fix MXCC error register (Robert Reif)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3662 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 4 deletions
target-sparc/op_helper.c
... ... @@ -446,13 +446,11 @@ void helper_st_asi(int asi, int size)
446 446 DPRINTF_MXCC("%08x: unimplemented access size: %d\n", T0, size);
447 447 break;
448 448 case 0x01c00e00: /* MXCC error register */
  449 + // writing a 1 bit clears the error
449 450 if (size == 8)
450   - env->mxccregs[6] = ((uint64_t)T1 << 32) | T2;
  451 + env->mxccregs[6] &= ~(((uint64_t)T1 << 32) | T2);
451 452 else
452 453 DPRINTF_MXCC("%08x: unimplemented access size: %d\n", T0, size);
453   - if (env->mxccregs[6] == 0xffffffffffffffffULL) {
454   - // this is probably a reset
455   - }
456 454 break;
457 455 case 0x01c00f00: /* MBus port address register */
458 456 if (size == 8)
... ...