diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-11-05 00:08:14 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-11-05 00:08:14 +0000 |
commit | 525d929e4947c625f79ad3c2e02272f8db2c9f8c (patch) | |
tree | 53c29842a4f58fbadc138bb3bd17ad8699b30355 /sim/mips/sim-main.h | |
parent | a26ecda4ecb44c93dc9b1e05045dc13aa6cb0ad6 (diff) | |
download | gdb-525d929e4947c625f79ad3c2e02272f8db2c9f8c.zip gdb-525d929e4947c625f79ad3c2e02272f8db2c9f8c.tar.gz gdb-525d929e4947c625f79ad3c2e02272f8db2c9f8c.tar.bz2 |
Rewrite sim_monitor (implements read, write, open, et.al. system
calls) and sim_open so that they uses the virtual memory data transfer
functions sim_read & sim_write. This eliminates all code (other than
in load_memory & store_memory) that makes assumptions about the
implementation of the underlying memory model.
Diffstat (limited to 'sim/mips/sim-main.h')
-rw-r--r-- | sim/mips/sim-main.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sim/mips/sim-main.h b/sim/mips/sim-main.h index 7809714..a01f229 100644 --- a/sim/mips/sim-main.h +++ b/sim/mips/sim-main.h @@ -672,8 +672,9 @@ void decode_coproc PARAMS ((SIM_DESC sd,unsigned int instruction)); #define isSTORE (1 == 1) /* TRUE */ #define isREAL (1 == 0) /* FALSE */ #define isRAW (1 == 1) /* TRUE */ +/* The parameter HOST (isTARGET / isHOST) is ignored */ #define isTARGET (1 == 0) /* FALSE */ -#define isHOST (1 == 1) /* TRUE */ +/* #define isHOST (1 == 1) TRUE */ /* The "AccessLength" specifications for Loads and Stores. NOTE: This is the number of bytes minus 1. */ @@ -687,9 +688,9 @@ void decode_coproc PARAMS ((SIM_DESC sd,unsigned int instruction)); #define AccessLength_DOUBLEWORD (7) #define AccessLength_QUADWORD (15) -int address_translation PARAMS ((SIM_DESC sd, address_word vAddr, int IorD, int LorS, address_word *pAddr, int *CCA, int host, int raw)); +int address_translation PARAMS ((SIM_DESC sd, address_word vAddr, int IorD, int LorS, address_word *pAddr, int *CCA, int raw)); #define AddressTranslation(vAddr,IorD,LorS,pAddr,CCA,host,raw) \ -address_translation(sd, vAddr,IorD,LorS,pAddr,CCA,host,raw) +address_translation(sd, vAddr,IorD,LorS,pAddr,CCA,raw) void load_memory PARAMS ((SIM_DESC sd, uword64* memvalp, uword64* memval1p, int CCA, int AccessLength, address_word pAddr, address_word vAddr, int IorD, int raw)); #define LoadMemory(memvalp,memval1p,CCA,AccessLength,pAddr,vAddr,IorD,raw) \ |