[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 6/7] monitor: "i": Add ARM specifics
From: |
Peter Crosthwaite |
Subject: |
[Qemu-devel] [PATCH 6/7] monitor: "i": Add ARM specifics |
Date: |
Mon, 4 May 2015 21:45:03 -0700 |
Add the ARM specific disassembly flags setup, so ARM can be correctly
disassembled from the monitor.
Signed-off-by: Peter Crosthwaite <address@hidden>
---
monitor.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/monitor.c b/monitor.c
index d831d98..9d9f1e2 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1217,6 +1217,17 @@ static void memory_dump(Monitor *mon, int count, int
format, int wsize,
int flags;
flags = 0;
env = mon_get_cpu();
+#ifdef TARGET_ARM
+ if (env->thumb) {
+ flags |= 1;
+ }
+ if (env->bswap_code) {
+ flags |= 2;
+ }
+ if (env->aarch64) {
+ flags |= 4;
+ }
+#endif
#ifdef TARGET_I386
if (wsize == 2) {
flags = 1;
--
1.9.1
- [Qemu-devel] [PATCH 0/7] disas: Unify target_disas and monitor_disas, Peter Crosthwaite, 2015/05/05
- [Qemu-devel] [PATCH 2/7] disas: microblaze: Migrate setup to common code, Peter Crosthwaite, 2015/05/05
- [Qemu-devel] [PATCH 3/7] disas: cris: Fix 0 buffer length case, Peter Crosthwaite, 2015/05/05
- [Qemu-devel] [PATCH 1/7] disas: Create factored out fn for monitor and target disas, Peter Crosthwaite, 2015/05/05
- [Qemu-devel] [PATCH 4/7] disas: cris: Migrate setup to common code, Peter Crosthwaite, 2015/05/05
- [Qemu-devel] [PATCH 5/7] disas: arm-a64: Make printfer and stream variable, Peter Crosthwaite, 2015/05/05
- [Qemu-devel] [PATCH 6/7] monitor: "i": Add ARM specifics,
Peter Crosthwaite <=
- Re: [Qemu-devel] [PATCH 6/7] monitor: "i": Add ARM specifics, Claudio Fontana, 2015/05/05
- Re: [Qemu-devel] [PATCH 6/7] monitor: "i": Add ARM specifics, Peter Maydell, 2015/05/05
- Re: [Qemu-devel] [PATCH 6/7] monitor: "i": Add ARM specifics, Peter Crosthwaite, 2015/05/06
- Re: [Qemu-devel] [PATCH 6/7] monitor: "i": Add ARM specifics, Richard Henderson, 2015/05/06
- Re: [Qemu-devel] [PATCH 6/7] monitor: "i": Add ARM specifics, Paolo Bonzini, 2015/05/06
- Re: [Qemu-devel] [PATCH 6/7] monitor: "i": Add ARM specifics, Stefano Stabellini, 2015/05/06
- Re: [Qemu-devel] [PATCH 6/7] monitor: "i": Add ARM specifics, Peter Maydell, 2015/05/06