diff options
author | Ron Unrau <runrau@cygnus> | 1998-05-07 14:36:42 +0000 |
---|---|---|
committer | Ron Unrau <runrau@cygnus> | 1998-05-07 14:36:42 +0000 |
commit | c939ffeb8049d10a4585ff49e781b665fcd27544 (patch) | |
tree | 06dfd669cd5ba18f22d10b034f8bde404afba32d /sim/mips | |
parent | b70d53742cda6a5a55c55cb01e6bf7f56431a280 (diff) | |
download | gdb-c939ffeb8049d10a4585ff49e781b665fcd27544.zip gdb-c939ffeb8049d10a4585ff49e781b665fcd27544.tar.gz gdb-c939ffeb8049d10a4585ff49e781b665fcd27544.tar.bz2 |
Initial Breakpoint support:
* sim-main.h: (struct _sim_cpu): add cur_device field.
Define cur_device values, breakpoint value, and SIM_ENGINE_HALT_HOOK
* interp.c (sim_open): initialize cur_device
* sky-engine.c (engine_run): use cur_device to set current_cpu
* sky-libvpe.c (vpecallms_cycle): add check for breakpoint
* sky-hardware.h: delete NUMBER_CPUS
* sky-hardware.c (attach_devices): create a memory mapped comm
area for GDB/SIM interactions
misc:
* sky-vu.c ({read,write}_vu_misc_reg): do default behavior for
unknown regs instead of sim_io_error. MP reg is float (was missing
cast).
Diffstat (limited to 'sim/mips')
-rw-r--r-- | sim/mips/interp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sim/mips/interp.c b/sim/mips/interp.c index 0e9430e..6634d3b 100644 --- a/sim/mips/interp.c +++ b/sim/mips/interp.c @@ -345,8 +345,8 @@ sim_open (kind, cb, abfd, argv) /* start-sanitize-sky */ #if defined(TARGET_SKY) && defined(SKY_FUNIT) - /* Set "--float-type target" as the default. */ - STATE_FP_TYPE_OPT (sd) |= STATE_FP_TYPE_OPT_TARGET; + /* Set "--float-type host" as the default. */ + STATE_FP_TYPE_OPT (sd) &= ~STATE_FP_TYPE_OPT_TARGET; #endif /* end-sanitize-sky */ @@ -474,6 +474,8 @@ sim_open (kind, cb, abfd, argv) /* Finally the VIF registers */ for( rn = 2*NUM_VU_REGS; rn < 2*NUM_VU_REGS + 2*NUM_VIF_REGS; rn++ ) cpu->register_widths[rn + NUM_R5900_REGS] = 32; + + cpu->cur_device = 0; #endif /* end-sanitize-sky */ } |