summaryrefslogtreecommitdiff
path: root/disas.c
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2011-04-10 18:23:39 +0200
committerAurelien Jarno <aurelien@aurel32.net>2011-04-12 21:51:50 +0200
commitc10f67f4e9a2540d9bcffb14fa8980e3319ae94a (patch)
treef9662709607c805dcf2df9d8a5b6852888063db8 /disas.c
parent6bb3f97ee35affb95c13bc331a149c1d6b777390 (diff)
downloadqemu-c10f67f4e9a2540d9bcffb14fa8980e3319ae94a.tar.gz
qemu-c10f67f4e9a2540d9bcffb14fa8980e3319ae94a.tar.bz2
qemu-c10f67f4e9a2540d9bcffb14fa8980e3319ae94a.zip
Replace cpu_physical_memory_rw were possible
Using cpu_physical_memory_read, cpu_physical_memory_write and ldub_phys improves readability and allows removing some type casts. lduw_phys and ldl_phys were not used because both require aligned addresses. Therefore it is not possible to simply replace existing calls by one of these functions. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'disas.c')
-rw-r--r--disas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disas.c b/disas.c
index 17b4ce47b2..223606cc50 100644
--- a/disas.c
+++ b/disas.c
@@ -345,7 +345,7 @@ monitor_read_memory (bfd_vma memaddr, bfd_byte *myaddr, int length,
struct disassemble_info *info)
{
if (monitor_disas_is_physical) {
- cpu_physical_memory_rw(memaddr, myaddr, length, 0);
+ cpu_physical_memory_read(memaddr, myaddr, length);
} else {
cpu_memory_rw_debug(monitor_disas_env, memaddr,myaddr, length, 0);
}