From a729752466f5d7f6a137c93173828ce7c4f404e2 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sat, 16 Jan 2016 01:46:03 -0800 Subject: [PATCH] ECLIPSE: Avoid C preprocessor name collision when building on power PC. Fix #267 --- NOVA/eclipse_cpu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/NOVA/eclipse_cpu.c b/NOVA/eclipse_cpu.c index c2ec12e1..e5be3c62 100644 --- a/NOVA/eclipse_cpu.c +++ b/NOVA/eclipse_cpu.c @@ -367,7 +367,7 @@ int32 speed = 0; /* Delay for each instru int32 XCT_mode = 0; /* 1 if XCT mode */ int32 XCT_inst = 0; /* XCT instruction */ -int32 PPC = -1; +int32 PrevPC = -1; int32 AMASK = 077777; struct ndev dev_table[64]; /* dispatch table */ @@ -845,14 +845,14 @@ if (sim_brk_summ && sim_brk_test (PC, SWMASK ('E'))) { /* breakpoint? */ } if ((PC < 1 || PC > 077777) && Debug_Flags) { - if (PPC != -1) { /* Don't break on 1st instruction */ - printf("\n<>\n\r", PC, PPC); + if (PrevPC != -1) { /* Don't break on 1st instruction */ + printf("\n<>\n\r", PC, PrevPC); reason = STOP_IBKPT; break; } } -PPC = PC; +PrevPC = PC; if (Debug_Flags) { if (!Tron) {