diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2004-09-16 00:37:21 -0400 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2004-09-16 00:37:21 -0400 |
commit | a71541a3e81067ebb1b974a2d74c951dc7fcb628 (patch) | |
tree | 4015ec6d47548fe3698fdef907439f658b9ba6aa /cpu | |
parent | a125a77310dcd777d92749d1306956958d2e8032 (diff) | |
download | gem5-a71541a3e81067ebb1b974a2d74c951dc7fcb628.tar.xz |
switch contexts on palcode rather than kernel code
cpu/pc_event.cc:
mask off lower three bits so we can have an event in palcode
--HG--
extra : convert_revision : 49fcdc5c359ca2bd9149f092f80f77abcd7b20ee
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/pc_event.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu/pc_event.cc b/cpu/pc_event.cc index a86c017d4..8f046a7a4 100644 --- a/cpu/pc_event.cc +++ b/cpu/pc_event.cc @@ -77,7 +77,7 @@ PCEventQueue::schedule(PCEvent *event) bool PCEventQueue::doService(ExecContext *xc) { - Addr pc = xc->regs.pc; + Addr pc = xc->regs.pc & ~0x3; int serviced = 0; range_t range = equal_range(pc); for (iterator i = range.first; i != range.second; ++i) { @@ -85,7 +85,7 @@ PCEventQueue::doService(ExecContext *xc) // another event. This for example, prevents two invocations // of the SkipFuncEvent. Maybe we should have separate PC // event queues for each processor? - if (pc != xc->regs.pc) + if (pc != (xc->regs.pc & ~0x3)) continue; DPRINTF(PCEvent, "PC based event serviced at %#x: %s\n", |