qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-discuss] cpu lose control when run uboot on qemu-system-mips


From: jiang
Subject: [Qemu-discuss] cpu lose control when run uboot on qemu-system-mips
Date: Thu, 25 Dec 2014 19:04:13 +0800
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

Hello all:
I try to run uboot(from some router(cpu:QCA9533 24Kc)) with qemu-system-mips,but there are some problems.
I run with:
qemu-system-mips -M malta -pflash flash.bin -nographic -monitor telnet:127.0.0.1:12121,server -singlestep -gdb tcp::1234 -S Then connect with gdb and run step by step,but I found that cpu lose control when try to step over this:
(qemu) x/10i 0xbfc00468
0xbfc00468:  mtc0    zero,$20 //here
0xbfc0046c:  mtc0    zero,$21
0xbfc00470:  mtc0    zero,$22
0xbfc00474:  mtc0    zero,$23

Another try with:
qemu-system-mips -M mips -cpu 24Kc -pflash flash.bin -nographic -monitor telnet:127.0.0.1:12121,server -singlestep -gdb tcp::1234 -S
And cpu lose control with:
(qemu) x/10i 0xbfc02f98
0xbfc02f98:  lw    t1,0(t0)  //here
0xbfc02f9c:  lui    t2,0xfffc
0xbfc02fa0:  ori    t2,t2,0x17ef
0xbfc02fa4:  and    t1,t1,t2
0xbfc02fa8:  sw    t1,0(t0)

Did I do something wrong? And what should I do if I want to run uboot on qemu? :)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]