From bb921b1459ef3ec55f9cea4ac8d203cd3c801cfd Mon Sep 17 00:00:00 2001 From: Deyuan Guo Date: Sat, 10 Sep 2011 03:45:25 -0700 Subject: MIPS: Implement gem5/src/arch/mips/remote_gdb.cc. So a mips-cross-gdb can connect with gem5(MIPS_SE), and do some remote debugging. Testing: Build gem5 for MIPS_SE and make gem5 wait at beginning: modify "rgdb_wait = -1" to "rgdb_wait = 0" in src/sim/system.cc; scons build/MIPS_SE/gem5.opt CPU_MODELS=O3CPU ---- Build GDB-7.3 mips-cross: ./configure --target=mips-linux-gnu --prefix=xxx/gdb-7.3-install/ make make install ---- Run: ./build/MIPS_SE/gem5.opt configs/example/se.py --detailed --caches ./mips-linux-gnu-gdb xxx/gem5/tests/test-progs/hello/bin/mips/linux/hello (gdb) target remote :7000 (gdb) info registers (gdb) disassemble (gdb) si (gdb) break main (gdb) c (gdb) quit Testing done. --- src/arch/mips/SConscript | 1 + 1 file changed, 1 insertion(+) (limited to 'src/arch/mips/SConscript') diff --git a/src/arch/mips/SConscript b/src/arch/mips/SConscript index 46c0dd914..9fc2b71ff 100644 --- a/src/arch/mips/SConscript +++ b/src/arch/mips/SConscript @@ -39,6 +39,7 @@ if env['TARGET_ISA'] == 'mips': Source('pagetable.cc') Source('utility.cc') Source('dsp.cc') + Source('remote_gdb.cc') SimObject('MipsTLB.py') DebugFlag('MipsPRA') -- cgit v1.2.3