I'm trying to test a linux kernel image which was built using Gaisler Toolchain, but I'm having some issues.
When I try running the qemu-sparc simulator, I get the following error:
Command Line: ./qemu-system-sparc -kernel newimg -nographic
[sparc] Kernel already loaded
switching to new context:
Unhandled Exception 0x00000002
PC = 0x00004000 NPC = 0x00004004
Stopping execution
If I select leon3 as the CPU, another error occurs:
qemu: fatal: Trap 0x02 while interrupts disabled, Error state
pc: 00000000 npc: 00000004
General Registers:
%g0-7: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Current Register Window:
%o0-7: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
%l0-7: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
%i0-7: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Floating Point Registers:
%f00: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
%f08: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
%f16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
%f24: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
psr: f30000c0 (icc: ---- SPE: SP-) wim: 00000001
fsr: 00080000 y: 00000000
Does anyone have any idea of what I'm doing wrong? As you can see, I'm very lost.
Any help will be greatly appreciated!