aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-core.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-10-14 23:45:52 +0000
committerAndrew Cagney <cagney@redhat.com>1997-10-14 23:45:52 +0000
commitfd89abc20473920dd03e81829de9622620a2e9f9 (patch)
tree81ba408755e794f6c3ab2167f815e9c394ad4c81 /sim/common/sim-core.h
parent0543ba6ec81daf4c0d25d3d300dfaa9982eb11c4 (diff)
downloadgdb-fd89abc20473920dd03e81829de9622620a2e9f9.zip
gdb-fd89abc20473920dd03e81829de9622620a2e9f9.tar.gz
gdb-fd89abc20473920dd03e81829de9622620a2e9f9.tar.bz2
Handle core regions which start at a poorly aligned address.
Diffstat (limited to 'sim/common/sim-core.h')
-rw-r--r--sim/common/sim-core.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/common/sim-core.h b/sim/common/sim-core.h
index a2d5ed9..686a845 100644
--- a/sim/common/sim-core.h
+++ b/sim/common/sim-core.h
@@ -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;