qemu linux-user/qemu.h linux-user/signal.c linu...
CVSROOT: /sources/qemu
Module name: qemu
Changes by: Thiemo Seufer <ths> 07/09/27 13:57:58
Modified files:
linux-user : qemu.h signal.c syscall.c target-alpha : cpu.h target-arm : cpu.h target-i386 : cpu.h target-mips : cpu.h target-ppc : cpu.h target-sparc : cpu.h
Added files:
linux-user/alpha: target_signal.h
linux-user/arm : target_signal.h
linux-user/i386: target_signal.h
linux-user/m68k: target_signal.h
linux-user/mips: target_signal.h
linux-user/ppc : target_signal.h
linux-user/ppc64: target_signal.h
linux-user/sh4 : target_signal.h
linux-user/sparc: target_signal.h
linux-user/sparc64: target_signal.h
linux-user/x86_64: target_signal.h
Log message:
linux-user sigaltstack() syscall, by Thayne Harbaugh.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/linux-user/qemu.h?cvsroot=qemu&r1=1.35&r2=1.36
http://cvs.savannah.gnu.org/viewcvs/qemu/linux-user/signal.c?cvsroot=qemu&r1=1.42&r2=1.43
http://cvs.savannah.gnu.org/viewcvs/qemu/linux-user/syscall.c?cvsroot=qemu&r1=1.135&r2=1.136
http://cvs.savannah.gnu.org/viewcvs/qemu/linux-user/alpha/target_signal.h?cvsroot=qemu&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/qemu/linux-user/arm/target_signal.h?cvsroot=qemu&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/qemu/linux-user/i386/target_signal.h?cvsroot=qemu&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/qemu/linux-user/m68k/target_signal.h?cvsroot=qemu&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/qemu/linux-user/mips/target_signal.h?cvsroot=qemu&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/qemu/linux-user/ppc/target_signal.h?cvsroot=qemu&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/qemu/linux-user/ppc64/target_signal.h?cvsroot=qemu&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/qemu/linux-user/sh4/target_signal.h?cvsroot=qemu&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/qemu/linux-user/sparc/target_signal.h?cvsroot=qemu&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/qemu/linux-user/sparc64/target_signal.h?cvsroot=qemu&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/qemu/linux-user/x86_64/target_signal.h?cvsroot=qemu&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/qemu/target-alpha/cpu.h?cvsroot=qemu&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/qemu/target-arm/cpu.h?cvsroot=qemu&r1=1.32&r2=1.33
http://cvs.savannah.gnu.org/viewcvs/qemu/target-i386/cpu.h?cvsroot=qemu&r1=1.48&r2=1.49
http://cvs.savannah.gnu.org/viewcvs/qemu/target-mips/cpu.h?cvsroot=qemu&r1=1.45&r2=1.46
http://cvs.savannah.gnu.org/viewcvs/qemu/target-ppc/cpu.h?cvsroot=qemu&r1=1.58&r2=1.59
http://cvs.savannah.gnu.org/viewcvs/qemu/target-sparc/cpu.h?cvsroot=qemu&r1=1.50&r2=1.51
Quoted 11 lines · Thiemo Seufer
CVSROOT: /sources/qemu
Module name: qemu
Changes by: Thiemo Seufer <ths> 07/09/27 13:57:58Modified files:
linux-user : qemu.h signal.c syscall.c target-alpha : cpu.h target-arm : cpu.h target-i386 : cpu.h target-mips : cpu.h target-ppc : cpu.h
static inline target_ulong get_sp_from_cpustate(CPUPPCState *state)
{
return state->gpr[1];
}
This is no way related to CPU emulation then has nothing to do in cpu.h. Furthermore, there no notion of sigaltstack or even stack pointer in the PowerPC specification.
Revert this patch immediatly, please, and stop breaking others code...
How should we say "don't do weird things in others code" ??? Again, and again and again...
Quoted 13 lines · Jocelyn Mayer
Quoted 11 lines · Thiemo Seufer
CVSROOT: /sources/qemu
Module name: qemu
Changes by: Thiemo Seufer <ths> 07/09/27 13:57:58Modified files:
linux-user : qemu.h signal.c syscall.c target-alpha : cpu.h target-arm : cpu.h target-i386 : cpu.h target-mips : cpu.h target-ppc : cpu.h
Quoted 6 lines
static inline
target_ulongget_sp_from_cpustate(CPUPPCState *state)
{
return state->gpr[1];
}This is no way related to CPU emulation then has nothing to do in
cpu.h.
Agreed, it should be confined to the linux-user implementation.
Quoted 2 lines
Furthermore, there no notion of sigaltstack or even stack pointer in the PowerPC specification.
You would need to look in the Linux PPC ABI for that.
Thiemo
Quoted 18 lines · Jocelyn Mayer
Quoted 11 lines · Thiemo Seufer
CVSROOT: /sources/qemu
Module name: qemu
Changes by: Thiemo Seufer <ths> 07/09/27 13:57:58Modified files:
linux-user : qemu.h signal.c syscall.c target-alpha : cpu.h target-arm : cpu.h target-i386 : cpu.h target-mips : cpu.h target-ppc : cpu.hstatic inline
target_ulongget_sp_from_cpustate(CPUPPCState *state)
{
return state->gpr[1];
}
Quoted 4 lines
This is no way related to CPU emulation then has nothing to do in
cpu.h. Furthermore, there no notion of sigaltstack or even stack pointer in the PowerPC specification.
Revert this patch immediatly, please, and stop breaking others code...
My apologies. I put get_sp_from_cpustate() in cpu.h because it is a generic function that isn't exclusive to sigaltstack(). If it's preferred it can be exclusive to sigaltstack().
Quoted 2 lines
How should we say "don't do weird things in others code" ??? Again, and again and again...
My hope was that these types of comments would be made prior to the patch being committed. Is there a developer document that describes the intentions of code layout, design philosophy, etc. so that I'm not guessing?
Please send me additional comments so that I can rework the patch for resubmission.
Thanks.
Quoted 28 lines · Thayne Harbaugh
Quoted 18 lines · Jocelyn Mayer
Quoted 11 lines · Thiemo Seufer
CVSROOT: /sources/qemu
Module name: qemu
Changes by: Thiemo Seufer <ths> 07/09/27 13:57:58Modified files:
linux-user : qemu.h signal.c syscall.c target-alpha : cpu.h target-arm : cpu.h target-i386 : cpu.h target-mips : cpu.h target-ppc : cpu.hstatic inline
target_ulongget_sp_from_cpustate(CPUPPCState *state)
{
return state->gpr[1];
}Quoted 4 lines
This is no way related to CPU emulation then has nothing to do in
cpu.h. Furthermore, there no notion of sigaltstack or even stack pointer in the PowerPC specification.
Revert this patch immediatly, please, and stop breaking others code...My apologies. I put
get_sp_from_cpustate()incpu.hbecause it is a generic function that isn't exclusive tosigaltstack(). If it's preferred it can be exclusive tosigaltstack().
Quoted 7 lines
Quoted 2 lines
How should we say "don't do weird things in others code" ??? Again, and again and again...
My hope was that these types of comments would be made prior to the patch being committed. Is there a developer document that describes the intentions of code layout, design philosophy, etc. so that I'm not guessing?
Then, I'm sorry, I did not notice this when you submitted your patch. And I even did not imagine that it could touch anything out of linux-user. Please apologize, I've been reading your submission too fast, not being directly interressed by the patch...
Quoted 2 lines
Please send me additional comments so that I can rework the patch for resubmission.
I don't know in which header you should define those ABI specific stuff. Maybe a header may be added in the linux-user target subdirectories for those kind of definitions; it may help avoiding too many #ifdef everywhere...
Thayne Harbaugh wrote:
[snip]
Quoted 5 lines
Quoted 5 lines
static inline
target_ulongget_sp_from_cpustate(CPUPPCState *state)
{
return state->gpr[1];
}
Quoted 8 lines
Quoted 4 lines
This is no way related to CPU emulation then has nothing to do in
cpu.h. Furthermore, there no notion of sigaltstack or even stack pointer in the PowerPC specification.
Revert this patch immediatly, please, and stop breaking others code...My apologies. I put
get_sp_from_cpustate()incpu.hbecause it is a generic function that isn't exclusive tosigaltstack(). If it's preferred it can be exclusive tosigaltstack().
I moved it over to target_signal.h, which seems to be the best place for the time being. I also enabled do_sigaltstack processing for MIPS, PPC and Alpha, as I don't see a reason not to support it.
Thiemo