diff options
author | Doug Evans <dje@google.com> | 1998-03-03 00:45:10 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 1998-03-03 00:45:10 +0000 |
commit | 2307e0ee986cd939edc2f7286c1cf51cad21911b (patch) | |
tree | 39cda667caba9e81eceb73a6b50e1d9526ac9dbd /sim | |
parent | 3a0d0c15e7eadef823b028e01b89594e1c49c2b7 (diff) | |
download | gdb-2307e0ee986cd939edc2f7286c1cf51cad21911b.zip gdb-2307e0ee986cd939edc2f7286c1cf51cad21911b.tar.gz gdb-2307e0ee986cd939edc2f7286c1cf51cad21911b.tar.bz2 |
Good grief. Detailed function descriptions should accompany their definition.
Diffstat (limited to 'sim')
-rw-r--r-- | sim/common/sim-core.c | 12 | ||||
-rw-r--r-- | sim/common/sim-core.h | 4 |
2 files changed, 4 insertions, 12 deletions
diff --git a/sim/common/sim-core.c b/sim/common/sim-core.c index e3e3436..d1f9de1 100644 --- a/sim/common/sim-core.c +++ b/sim/common/sim-core.c @@ -255,17 +255,7 @@ sim_core_map_attach (SIM_DESC sd, } /* Attach memory or a memory mapped device to the simulator. - LEVEL is ... ? - ACCESS is the kind of access to grant (some collection of r/w/x). - SPACE is ... ? - ADDR is the starting address of the section. - NR_BYTES is the size of the section. - MODULO is non-zero if this the section is to be split into several MODULO - sized identical chunks. - CLIENT is non-zero for devices, otherwise NULL. - OPTIONAL_BUFFER is the address of a pre-allocated buffer to use. - OPTIONAL_BUFFER is a sub-optimal hook that allows clients to do nasty - things that the interface doesn't accomodate. */ + See sim-core.h for a full description. */ EXTERN_SIM_CORE\ (void) diff --git a/sim/common/sim-core.h b/sim/common/sim-core.h index 5bd0984..3dee685 100644 --- a/sim/common/sim-core.h +++ b/sim/common/sim-core.h @@ -122,7 +122,9 @@ EXTERN_SIM_CORE\ data read & written to the region. Normally a more efficient internal structure is used. It is assumed that buffer is allocated such that the byte alignmed of OPTIONAL_BUFFER matches ADDR vis - (OPTIONAL_BUFFER % 8) == (ADDR % 8)) */ + (OPTIONAL_BUFFER % 8) == (ADDR % 8)). It is defined to be a sub-optimal + hook that allows clients to do nasty things that the interface doesn't + accomodate. ??? That seems unnecessarily restrictive. */ EXTERN_SIM_CORE\ (void) sim_core_attach |