diff options
author | Nathan Binkert <binkertn@umich.edu> | 2003-10-13 17:24:27 -0400 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2003-10-13 17:24:27 -0400 |
commit | f94ff9ace556d9aa1ac9d00b8b1dbc73e161d213 (patch) | |
tree | 353724806826d4faa7ad8c6b6b9f0ab658936dbb /cpu | |
parent | 2471c214bf85b1c0342f222a1a85ace110d76d16 (diff) | |
download | gem5-f94ff9ace556d9aa1ac9d00b8b1dbc73e161d213.tar.xz |
Split up kernel.cc into separate files for dump_mbuf and printf
cpu/exec_context.hh:
dev/alpha_console.cc:
sim/system.cc:
sim/system.hh:
Convert from fixed array to a vector
arch/alpha/arguments.hh:
now that CopyData and CopyString are in vtophys.hh, this
include is not necessary
arch/alpha/vtophys.hh:
Include isa_traits.hh for Addr
cpu/pc_event.cc:
Temporarily get this working while we're changing things
--HG--
extra : convert_revision : 9a7597b7bd5d050819766f8edf7a02f28447b9ca
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/exec_context.hh | 4 | ||||
-rw-r--r-- | cpu/pc_event.cc | 10 |
2 files changed, 8 insertions, 6 deletions
diff --git a/cpu/exec_context.hh b/cpu/exec_context.hh index 5c1db6297..6964b35b8 100644 --- a/cpu/exec_context.hh +++ b/cpu/exec_context.hh @@ -245,8 +245,8 @@ class ExecContext // stores (WH64?) // Unsuccesful Store Conditionals would have returned above, // and wouldn't fall through - for(int i = 0; i < system->num_cpus; i++){ - cregs = &system->xc_array[i]->regs.miscRegs; + for(int i = 0; i < system->xcvec.size(); i++){ + cregs = &system->xcvec[i]->regs.miscRegs; if((cregs->lock_addr & ~0xf) == (req->paddr & ~0xf)) { cregs->lock_flag = false; } diff --git a/cpu/pc_event.cc b/cpu/pc_event.cc index a275c2c41..7b72f5c08 100644 --- a/cpu/pc_event.cc +++ b/cpu/pc_event.cc @@ -40,7 +40,6 @@ #ifdef FULL_SYSTEM #include "targetarch/arguments.hh" #include "targetarch/pmap.h" -#include "kern/tru64/kernel.hh" #include "mem/functional_mem/memory_control.hh" #include "cpu/full_cpu/cpu.hh" #include "sim/system.hh" @@ -163,6 +162,9 @@ BadAddrEvent::process(ExecContext *xc) DPRINTF(BADADDR, "badaddr arg=%#x good\n", a0); } +void Printf(AlphaArguments args); +void DumpMbuf(AlphaArguments args); + void PrintfEvent::process(ExecContext *xc) { @@ -170,7 +172,7 @@ PrintfEvent::process(ExecContext *xc) DebugOut() << curTick << ": " << xc->cpu->name() << ": "; AlphaArguments args(xc); - Kernel::Printf(args); + Printf(args); } } @@ -182,7 +184,7 @@ DebugPrintfEvent::process(ExecContext *xc) DebugOut() << curTick << ": " << xc->cpu->name() << ": "; AlphaArguments args(xc); - Kernel::Printf(args); + Printf(args); } } @@ -191,7 +193,7 @@ DumpMbufEvent::process(ExecContext *xc) { if (DTRACE(DebugPrintf)) { AlphaArguments args(xc); - Kernel::DumpMbuf(args); + DumpMbuf(args); } } #endif |