Add support for disabling alignment checks when performing GDB interface

calls or SWI emulaiton routines.  (Alignment checking code has not yet been
contributed).
This commit is contained in:
Nick Clifton 2001-02-28 01:04:24 +00:00
parent 3078eca931
commit 917bca4f21
8 changed files with 95 additions and 44 deletions

View file

@ -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;
}