[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 33/45] qom: Add MMU_DEBUG_LOAD
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PATCH v3 33/45] qom: Add MMU_DEBUG_LOAD |
Date: |
Wed, 24 Jan 2018 15:26:13 -0800 |
This lets us tell bottom levels of virtual memory translation
routines that the access is from within QEMU itself and bypass
certain tests.
Cc: Andreas Färber <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>
---
include/qom/cpu.h | 3 ++-
target/sh4/op_helper.c | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/include/qom/cpu.h b/include/qom/cpu.h
index 93bd546879..6367acca97 100644
--- a/include/qom/cpu.h
+++ b/include/qom/cpu.h
@@ -64,7 +64,8 @@ typedef uint64_t vaddr;
typedef enum MMUAccessType {
MMU_DATA_LOAD = 0,
MMU_DATA_STORE = 1,
- MMU_INST_FETCH = 2
+ MMU_INST_FETCH = 2,
+ MMU_DEBUG_LOAD = 3
} MMUAccessType;
typedef struct CPUWatchpoint CPUWatchpoint;
diff --git a/target/sh4/op_helper.c b/target/sh4/op_helper.c
index d798f239cf..8fa7cb6b42 100644
--- a/target/sh4/op_helper.c
+++ b/target/sh4/op_helper.c
@@ -36,6 +36,8 @@ void superh_cpu_do_unaligned_access(CPUState *cs, vaddr addr,
case MMU_DATA_STORE:
cs->exception_index = 0x100;
break;
+ default:
+ g_assert_not_reached();
}
cpu_loop_exit_restore(cs, retaddr);
}
--
2.14.3
- [Qemu-devel] [PATCH v3 23/45] target/hppa: Implement LDWA, (continued)
- [Qemu-devel] [PATCH v3 23/45] target/hppa: Implement LDWA, Richard Henderson, 2018/01/24
- [Qemu-devel] [PATCH v3 25/45] target/hppa: Implement LCI, Richard Henderson, 2018/01/24
- [Qemu-devel] [PATCH v3 26/45] target/hppa: Implement SYNCDMA insn, Richard Henderson, 2018/01/24
- [Qemu-devel] [PATCH v3 24/45] target/hppa: Implement LPA, Richard Henderson, 2018/01/24
- [Qemu-devel] [PATCH v3 22/45] target/hppa: Implement P*TLB and P*TLBE insns, Richard Henderson, 2018/01/24
- [Qemu-devel] [PATCH v3 27/45] target/hppa: Implement halt and reset instructions, Richard Henderson, 2018/01/24
- [Qemu-devel] [PATCH v3 28/45] target/hppa: Optimize for flat addressing space, Richard Henderson, 2018/01/24
- [Qemu-devel] [PATCH v3 31/45] target/hppa: Implement B,GATE insn, Richard Henderson, 2018/01/24
- [Qemu-devel] [PATCH v3 29/45] target/hppa: Add system registers to gdbstub, Richard Henderson, 2018/01/24
- [Qemu-devel] [PATCH v3 30/45] target/hppa: Add migration for the cpu, Richard Henderson, 2018/01/24
- [Qemu-devel] [PATCH v3 33/45] qom: Add MMU_DEBUG_LOAD,
Richard Henderson <=
- [Qemu-devel] [PATCH v3 32/45] target/hppa: Only use EXCP_DTLB_MISS, Richard Henderson, 2018/01/24
- [Qemu-devel] [PATCH v3 34/45] target/hppa: Use MMU_DEBUG_LOAD when reloading for CR[IIR], Richard Henderson, 2018/01/24
- [Qemu-devel] [PATCH v3 35/45] target/hppa: Increase number of temp regs, Richard Henderson, 2018/01/24
- [Qemu-devel] [PATCH v3 36/45] target/hppa: Fix comment, Richard Henderson, 2018/01/24
- [Qemu-devel] [PATCH v3 38/45] target/hppa: Implement a pause instruction, Richard Henderson, 2018/01/24
- [Qemu-devel] [PATCH v3 39/45] target/hppa: Implement STWA, Richard Henderson, 2018/01/24
- [Qemu-devel] [PATCH v3 37/45] target/hppa: Implement LDSID for system mode, Richard Henderson, 2018/01/24
- [Qemu-devel] [PATCH v3 40/45] target/hppa: Enable MTTCG, Richard Henderson, 2018/01/24
- [Qemu-devel] [PATCH v3 41/45] hw/hppa: Implement DINO system board, Richard Henderson, 2018/01/24