sim golden model lrsc reservation sync

This commit is contained in:
Dolu1990 2022-01-10 16:08:38 +01:00
parent da53de360f
commit 6e77f32087
1 changed files with 2 additions and 2 deletions

View File

@ -897,8 +897,8 @@ public:
dWrite(pAddr, size, (uint8_t*) &rsp.value); dWrite(pAddr, size, (uint8_t*) &rsp.value);
status.fs = 3; status.fs = 3;
pcWrite(pc + 4); pcWrite(pc + 4);
lrscReserved = false;
} }
lrscReserved = false;
} break; } break;
#endif #endif
case 0x37:rfWrite(rd32, i & 0xFFFFF000);pcWrite(pc + 4);break; // LUI case 0x37:rfWrite(rd32, i & 0xFFFFF000);pcWrite(pc + 4);break; // LUI
@ -949,8 +949,8 @@ public:
if(v2p(address, &pAddr, WRITE)){ trap(0, 15, address); return; } if(v2p(address, &pAddr, WRITE)){ trap(0, 15, address); return; }
dWrite(pAddr, size, (uint8_t*)&i32_rs2); dWrite(pAddr, size, (uint8_t*)&i32_rs2);
pcWrite(pc + 4); pcWrite(pc + 4);
lrscReserved = false;
} }
lrscReserved = false;
}break; }break;
case 0x13: //ALUi case 0x13: //ALUi
switch ((i >> 12) & 0x7) { switch ((i >> 12) & 0x7) {