projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
config: Sync with GCC
[deliverable/binutils-gdb.git]
/
sim
/
m68hc11
/
interrupts.c
diff --git
a/sim/m68hc11/interrupts.c
b/sim/m68hc11/interrupts.c
index 1d77b8367719f5c94b5037695aa86146bfef4b8c..c57443b413bd9ebe2cf4b6bcd9690051685a3cca 100644
(file)
--- a/
sim/m68hc11/interrupts.c
+++ b/
sim/m68hc11/interrupts.c
@@
-1,5
+1,5
@@
/* interrupts.c -- 68HC11 Interrupts Emulation
/* interrupts.c -- 68HC11 Interrupts Emulation
- Copyright 1999-201
6
Free Software Foundation, Inc.
+ Copyright 1999-201
8
Free Software Foundation, Inc.
Written by Stephane Carrez (stcarrez@nerim.fr)
This file is part of GDB, GAS, and the GNU binutils.
Written by Stephane Carrez (stcarrez@nerim.fr)
This file is part of GDB, GAS, and the GNU binutils.
@@
-91,7
+91,6
@@
struct interrupt_def idefs[] = {
#endif
};
#endif
};
-#define TableSize(X) (sizeof X / sizeof(X[0]))
#define CYCLES_MAX ((((signed64) 1) << 62) - 1)
enum
#define CYCLES_MAX ((((signed64) 1) << 62) - 1)
enum
@@
-123,11
+122,11
@@
static const OPTION interrupt_options[] =
/* Initialize the interrupts module. */
void
/* Initialize the interrupts module. */
void
-interrupts_initialize (SIM_DESC sd, s
truct _sim_cpu *proc
)
+interrupts_initialize (SIM_DESC sd, s
im_cpu *cpu
)
{
{
- struct interrupts *interrupts = &
proc
->cpu_interrupts;
+ struct interrupts *interrupts = &
cpu
->cpu_interrupts;
- interrupts->cpu =
proc
;
+ interrupts->cpu =
cpu
;
sim_add_option_table (sd, 0, interrupt_options);
}
sim_add_option_table (sd, 0, interrupt_options);
}
@@
-290,7
+289,7
@@
interrupts_update_pending (struct interrupts *interrupts)
set_mask = 0;
ioregs = &interrupts->cpu->ios[0];
set_mask = 0;
ioregs = &interrupts->cpu->ios[0];
- for (i = 0; i <
TableSize
(idefs); i++)
+ for (i = 0; i <
ARRAY_SIZE
(idefs); i++)
{
struct interrupt_def *idef = &idefs[i];
uint8 data;
{
struct interrupt_def *idef = &idefs[i];
uint8 data;
This page took
0.023366 seconds
and
4
git commands to generate.