diff options
author | Nick Clifton <nickc@redhat.com> | 2002-05-27 14:12:00 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-05-27 14:12:00 +0000 |
commit | 10b57fcbd720b5fab5b54901e7c80a2b39898cc4 (patch) | |
tree | 24dd8123d4584f1b4d3de8d09e2b47b0cb85fa7b /sim/arm/armvirt.c | |
parent | f08caad151ffb2884eeb58c956f931ea8d30e0bf (diff) | |
download | gdb-10b57fcbd720b5fab5b54901e7c80a2b39898cc4.zip gdb-10b57fcbd720b5fab5b54901e7c80a2b39898cc4.tar.gz gdb-10b57fcbd720b5fab5b54901e7c80a2b39898cc4.tar.bz2 |
Only perform access checks if 'check' is set.
Report unknown machine numbers.
Formatting tidy ups.
Diffstat (limited to 'sim/arm/armvirt.c')
-rw-r--r-- | sim/arm/armvirt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sim/arm/armvirt.c b/sim/arm/armvirt.c index ce1e77d..26fd905 100644 --- a/sim/arm/armvirt.c +++ b/sim/arm/armvirt.c @@ -64,7 +64,8 @@ GetWord (ARMul_State * state, ARMword address, int check) ARMword **pagetable; ARMword *pageptr; - XScale_check_memacc (state, &address, 0); + if (check) + XScale_check_memacc (state, &address, 0); page = address >> PAGEBITS; offset = (address & OFFSETBITS) >> 2; @@ -99,7 +100,8 @@ PutWord (ARMul_State * state, ARMword address, ARMword data, int check) ARMword **pagetable; ARMword *pageptr; - XScale_check_memacc (state, &address, 1); + if (check) + XScale_check_memacc (state, &address, 1); page = address >> PAGEBITS; offset = (address & OFFSETBITS) >> 2; |