diff options
author | Nick Clifton <nickc@redhat.com> | 2001-02-28 01:04:24 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-02-28 01:04:24 +0000 |
commit | 917bca4f210f0b654abbb8497dd4f8abe5bf9e9f (patch) | |
tree | 578acea531543f8b6b6361923e6d8dba5b112955 /sim/arm/wrapper.c | |
parent | 3078eca93142e636b211897744a97b66569593b9 (diff) | |
download | gdb-917bca4f210f0b654abbb8497dd4f8abe5bf9e9f.zip gdb-917bca4f210f0b654abbb8497dd4f8abe5bf9e9f.tar.gz gdb-917bca4f210f0b654abbb8497dd4f8abe5bf9e9f.tar.bz2 |
Add support for disabling alignment checks when performing GDB interface
calls or SWI emulaiton routines. (Alignment checking code has not yet been
contributed).
Diffstat (limited to 'sim/arm/wrapper.c')
-rw-r--r-- | sim/arm/wrapper.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sim/arm/wrapper.c b/sim/arm/wrapper.c index 242f0bb..877f7fb 100644 --- a/sim/arm/wrapper.c +++ b/sim/arm/wrapper.c @@ -1,5 +1,5 @@ /* run front end support for arm - Copyright (C) 1995, 1996, 1997, 2000 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1997, 2000, 2001 Free Software Foundation, Inc. This file is part of ARM SIM. @@ -126,7 +126,7 @@ sim_write (sd, addr, buffer, size) init (); for (i = 0; i < size; i++) - ARMul_WriteByte (state, addr + i, buffer[i]); + ARMul_SafeWriteByte (state, addr + i, buffer[i]); return size; } @@ -139,11 +139,11 @@ sim_read (sd, addr, buffer, size) int size; { int i; + init (); for (i = 0; i < size; i++) - { - buffer[i] = ARMul_ReadByte (state, addr + i); - } + buffer[i] = ARMul_SafeReadByte (state, addr + i); + return size; } |