[PPC] SegFault due to Stack Overflow in E500
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| QEMU |
Expired
|
Undecided
|
Unassigned | ||
Bug Description
I am getting a Segmentation Fault while simulating a PowerPC e500. I've tried to debug the problem and I've found that it occurs when you have a 0 value decrementer. The function trace is the following:
1) __cpu_ppc_
2) Since value < 3, booke_decr_cb is called;
3) booke_decr_cb then calls booke_update_irq() and cpu_ppc_
4) cpu_ppc_store_decr calls __cpu_ppc_
You're stuck on this infinite cycle until your stack overflows eventually.
Command Line:
qemu-system-ppc -cpu e500v2 -d guest_errors,unimp -m 2048 -M ppce500 -nographic -bios ../cc/share/qem
u/u-boot.e500 -kernel XKYAPP.exe
Platform where the bug occured: Bash ubuntu on Windows;
Revision where the bug was found: e3571ae30cd26d1
Thanks!

Do you know what the DECAR SPR contains at that point in time? I guess it's 0 ... but what does that mean here? Should the decrementer be stopped?