Re: [GXemul-users] MIPS 4KEc Coprocessor
Status: Alpha
Brought to you by:
gavare
From: Thomas M. <mai...@gm...> - 2011-08-18 21:40:36
|
I am running the current SVN version. The command line is the following and the error occurs at step 4. Maybe I did not initialize the cpu right. The first ./gxemul -V amazon.gxemul GXemul (unknown version) Copyright (C) 2003-2011 Anders Gavare amazon.gxemul loaded GXemul> step step 2: cpu0: 0xbfc00000 10000007 b 0xffffffffbfc00020 => cpu0.inDelaySlot: false -> true => cpu0.pc: 0xffffffffbfc00000 -> 0xffffffffbfc00004 GXemul> step step 3: cpu0: 0xbfc00004 00000000 (delayslot) nop => cpu0.inDelaySlot: true -> false => cpu0.pc: 0xffffffffbfc00004 -> 0xffffffffbfc00020 GXemul> step step 4: cpu0: 0xbfc00020 40809000 unimplemented: cop0 cpu0: unimplemented opcode 0x10 cpu0: instruction translation failed Single-stepping aborted. GXemul> root root \-- mainbus0 |-- cpu0 (4KEc, 100 MHz) \-- rom0 (16 MB at offset 0x1fc00000) accuracy = cycle step = 0x4 The beginning of the configuration file for the cpu is the following: component root { string accuracy "cycle" string name "root" uint64 step 0x2 string template "" component mainbus { string name "mainbus0" uint64 step 0 string template "" component mips_cpu { uint64 a0 0 uint64 a1 0 uint64 a2 0 uint64 a3 0 uint64 a4 0 uint64 a5 0 uint64 a6 0 uint64 a7 0 string abi "n64" string architecture "MIPS" uint64 at 0 bool bigendian true uint64 delaySlotTarget 0xffffffffbfc00020 uint64 fp 0 double frequency 1e+08 sint32 functionCallTraceDepth 0 uint64 gp 0 bool hasUsedUnassemble false uint64 hi 0 bool inDelaySlot false uint64 k0 0 uint64 k1 0 uint64 lastDumpAddr 0 uint64 lastUnassembleVaddr 0 uint64 lo 0 string model "4KEc" string name "cpu0" sint64 nrOfTracedFunctionCalls 0 bool paused false uint64 pc 0xffffffffbfc00000 uint64 ra 0 uint64 s0 0 uint64 s1 0 uint64 s2 0 uint64 s3 0 uint64 s4 0 uint64 s5 0 uint64 s6 0 uint64 s7 0 bool showFunctionTraceCall false bool showFunctionTraceReturn false uint64 sp 0xffffffffa0007f00 uint64 step 0x2 uint64 t4 0 uint64 t5 0 uint64 t6 0 uint64 t7 0 uint64 t8 0 uint64 t9 0 string template "" uint64 v0 0 uint64 v1 0 uint64 zr 0 } component ram I hope that this information is useful for troubleshooting. Thomas On 08/17/2011 06:43 PM, Anders Gavare wrote: > Ons 2011-08-17 klockan 10:48 +0200 skrev Thomas Mair: >> i am trying to run an image file on a MIPS 4KEc processor. Unfortunately >> the execution of the image stops, when trying to acess the coprocessor >> with a mtc0 instruction. I tried to read the source code and came to the >> conclusion that the coprocessor access is missing. > What version of GXemul are you running, and how does the complete > command line look when you are starting up the emulation? And what is > the exact error? > > (The standard system coprocessor 0 is implemented in cpu_mips_coproc.cc, > but maybe your command line arguments cause the coprocessor to not be > initialized properly.) > > > Anders > > |