aboutsummaryrefslogtreecommitdiff
path: root/sim/m68hc11/interrupts.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/m68hc11/interrupts.c')
-rw-r--r--sim/m68hc11/interrupts.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sim/m68hc11/interrupts.c b/sim/m68hc11/interrupts.c
index 129f3c0..ed82655 100644
--- a/sim/m68hc11/interrupts.c
+++ b/sim/m68hc11/interrupts.c
@@ -91,7 +91,6 @@ struct interrupt_def idefs[] = {
#endif
};
-#define TableSize(X) (sizeof X / sizeof(X[0]))
#define CYCLES_MAX ((((signed64) 1) << 62) - 1)
enum
@@ -290,7 +289,7 @@ interrupts_update_pending (struct interrupts *interrupts)
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;