Skip to contentSkip to conversation

PATCH: allow Sparc hosts to run arm/mips/sparc-softmmu

Qemu-devel Ben Taylor 3 participants 3 messages Mar 13, 2007 – Mar 15, 2007

lore
Share & tools
lore

Ben Taylor

author
#0 lore raw
Quoted 8 lines · ---- Paul Brook
Quoted 3 lines · Ben Taylor

This patch fixes crashes when testing with arm-test-0.2.tar.gz and mips-test-0.2.tar.gz. Without the patch, both arm-test and mips-test segfault when trying to boot.

I don't believe this is correct. You're going to have to come up with a fairly convincing argument to get a patch like this accepted.
"don't seem to like this very much" is not a useful comment.

Yeah, so the comment is not very useful. I copied it from the author. I'll see if he can actually explain why this patch is important.

However, it's very wax-on, wax-off kind of thing. Without the patch, arm-test and mips-test crash. With the patch, I can run both tests.

Ben

#1 lore raw
Quoted 2 lines

However, it's very wax-on, wax-off kind of thing. Without the patch, arm-test and mips-test crash. With the patch, I can run both tests.

As I've said before it's not sufficient to say that a patch fixes a bug, you have to explain *what* bug you are fixing, *how* it fixes the bug, and *why* it's the correct way to fix it. In order to review the patch I need to be able to follow your logic for creating the patch. If you don't understand the patch you should not be submitting it.

In this specific case:

* What: "qemu crashes" is not a particularly useful description of the failure mode. I want to know how (eg. segfault, abort, infinite loop, does wrong thing) it crashes, which bit of code it's executing when it crashes, and how it got to that point.

* How: I'm also not convinced your #ifdef does what you think it does, though It's somewhat unclear what you're trying to achieve. I'm guessing you intended to disable the code on sparc hosted arm+mips targets

* Why: "I randomly changed things until it started working" is not a valid justification for a change. Why doesn't this failure occur on other hosts? Why only arm and mips targets?

Paul

#2 lore raw
In reply to Ben Taylor
Quoted 2 lines · Ben Taylor

However, it's very wax-on, wax-off kind of thing. Without the patch, arm-test and mips-test crash. With the patch, I can run both tests.

Could we get a reproduction sequence for the crashes please?

Rob

Signature · 1 line
Vista: Windows Millenium Second Edition