summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2012-10-04 12:36:04 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2012-10-04 19:46:18 -0500
commit4be403c8158e1b6be743f0fef004310cea4e3975 (patch)
tree3f5282792a3da1214dfb4eb29aaa3004627604a6 /monitor.c
parente744c06fca438dc08271e626034e632a270c91c8 (diff)
downloadqemu-4be403c8158e1b6be743f0fef004310cea4e3975.tar.gz
qemu-4be403c8158e1b6be743f0fef004310cea4e3975.tar.bz2
qemu-4be403c8158e1b6be743f0fef004310cea4e3975.zip
Make target_phys_addr_t 64 bits unconditionally
The hassle and compile time overhead of maintaining both 32-bit and 64-bit capable source isn't worth the tiny performance advantage which is seen on a minority of configurations. Switch to compiling libhw only once, with target_phys_addr_t unconditionally typedefed to uint64_t. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/monitor.c b/monitor.c
index 67064e2706..7beac9a806 100644
--- a/monitor.c
+++ b/monitor.c
@@ -3259,11 +3259,7 @@ static int64_t expr_unary(Monitor *mon)
break;
default:
errno = 0;
-#if TARGET_PHYS_ADDR_BITS > 32
n = strtoull(pch, &p, 0);
-#else
- n = strtoul(pch, &p, 0);
-#endif
if (errno == ERANGE) {
expr_error(mon, "number too large");
}