aboutsummaryrefslogtreecommitdiff
path: root/sim/m68hc11/interrupts.h
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2001-05-20 15:36:29 +0000
committerStephane Carrez <stcarrez@nerim.fr>2001-05-20 15:36:29 +0000
commit11115521f652c7a4c85fc326efc1ad6fae913e59 (patch)
tree70e9bdee565a958b693e867ae3bd8cc0ad898d33 /sim/m68hc11/interrupts.h
parentb4fa4770b8c2145ec040cb87ead3bd467cb4fa7b (diff)
downloadfsf-binutils-gdb-11115521f652c7a4c85fc326efc1ad6fae913e59.zip
fsf-binutils-gdb-11115521f652c7a4c85fc326efc1ad6fae913e59.tar.gz
fsf-binutils-gdb-11115521f652c7a4c85fc326efc1ad6fae913e59.tar.bz2
* dv-m68hc11sio.c (m68hc11sio_tx_poll): Always check for
pending interrupts. * interrupts.c (interrupts_process): Keep track of the last number of masked insn cycles. (interrupts_initialize): Clear last number of masked insn cycles. (interrupts_info): Report them. (interrupts_update_pending): Compute clear and set masks of interrupts and clear the interrupt bits before setting them (due to SCI interrupt sharing). * interrupts.h (struct interrupts): New members last_mask_cycles and xirq_last_mask_cycles.
Diffstat (limited to 'sim/m68hc11/interrupts.h')
-rw-r--r--sim/m68hc11/interrupts.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sim/m68hc11/interrupts.h b/sim/m68hc11/interrupts.h
index 39069cd..69afa54 100644
--- a/sim/m68hc11/interrupts.h
+++ b/sim/m68hc11/interrupts.h
@@ -1,5 +1,5 @@
/* interrupts.h -- 68HC11 Interrupts Emulation
- Copyright 1999, 2000 Free Software Foundation, Inc.
+ Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
Written by Stephane Carrez (stcarrez@worldnet.fr)
This file is part of GDB, GAS, and the GNU binutils.
@@ -109,11 +109,13 @@ struct interrupts {
signed64 start_mask_cycle;
signed64 min_mask_cycles;
signed64 max_mask_cycles;
+ signed64 last_mask_cycles;
/* - Same for XIRQ. */
signed64 xirq_start_mask_cycle;
signed64 xirq_min_mask_cycles;
signed64 xirq_max_mask_cycles;
+ signed64 xirq_last_mask_cycles;
/* - Total number of interrupts raised. */
unsigned long nb_interrupts_raised;