Handle core regions which start at a poorly aligned address.

This commit is contained in:
Andrew Cagney
1997-10-14 23:45:52 +00:00
parent 0543ba6ec8
commit fd89abc204
3 changed files with 51 additions and 27 deletions

View File

@@ -48,7 +48,7 @@ struct _sim_core_mapping {
unsigned_word nr_bytes;
unsigned mask;
/* memory map */
int free_buffer;
void *free_buffer;
void *buffer;
/* callback map */
device *device;
@@ -90,7 +90,7 @@ struct _sim_core {
typedef struct _sim_cpu_core {
sim_core_common common;
address_word xor[WITH_XOR_ENDIAN];
address_word xor[WITH_XOR_ENDIAN + 1]; /* +1 to avoid zero-sized array */
} sim_cpu_core;