ppcmmu: add debug memory reading function.

This function saves and restores the MMU state
so no invalid user input can break CPU execution.
This commit is contained in:
Maxim Poliakovski
2020-02-23 16:41:44 +01:00
parent 403c19ca39
commit 461d859e73
6 changed files with 135 additions and 8 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ static void disasm(uint32_t inst_num = 1UL, uint32_t address = ppc_state.ppc_pc)
ctx.simplified = true;
for (int i = 0; i < inst_num; i++) {
ctx.instr_code = mem_grab_dword(ctx.instr_addr);
ctx.instr_code = mem_read_dbg(ctx.instr_addr, 4);
cout << uppercase << hex << ctx.instr_addr << " "
<< disassemble_single(&ctx) << endl;
}