aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2017-09-14 08:10:53 -0700
committerRichard Henderson <richard.henderson@linaro.org>2017-10-25 11:41:42 +0200
commitf50f3dd5d6a982943ba603ad5d79a7f6a0f98404 (patch)
treee8c5562ceae26fe6b2944024e29717386534ef8e /monitor.c
parent3d7196d43bfe12efe98568cb60057e273652b99b (diff)
downloadqemu-f50f3dd5d6a982943ba603ad5d79a7f6a0f98404.zip
qemu-f50f3dd5d6a982943ba603ad5d79a7f6a0f98404.tar.gz
qemu-f50f3dd5d6a982943ba603ad5d79a7f6a0f98404.tar.bz2
target/i386: Convert to disas_set_info hook
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/monitor.c b/monitor.c
index fe0d1bd..a736ae9 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1310,27 +1310,6 @@ static void memory_dump(Monitor *mon, int count, int format, int wsize,
if (format == 'i') {
int flags = 0;
-#ifdef TARGET_I386
- CPUArchState *env = mon_get_cpu_env();
- if (wsize == 2) {
- flags = 1;
- } else if (wsize == 4) {
- flags = 0;
- } else {
- /* as default we use the current CS size */
- flags = 0;
- if (env) {
-#ifdef TARGET_X86_64
- if ((env->efer & MSR_EFER_LMA) &&
- (env->segs[R_CS].flags & DESC_L_MASK))
- flags = 2;
- else
-#endif
- if (!(env->segs[R_CS].flags & DESC_B_MASK))
- flags = 1;
- }
- }
-#endif
#ifdef TARGET_PPC
CPUArchState *env = mon_get_cpu_env();
flags = msr_le << 16;