[Qemu-devel] [RFC] Starting a (secondary) CPU when it is halted or reset

2012-10-05 Thread Ronald Hecht
Hello all, I have a question regarding LEON SPARC SMP. In a LEON SPARC SMP system secondary CPUs (others that CPU#0) can be started by setting certain bits in the interrupt controller. At startup (reset) all CPUs are halted except CPU#0. In QEMU version 0.12 it was possible to simply set CPUS

Re: [Qemu-devel] [PATCH RFC] hw/grlib: SMP support added to LEON interrupt controller

2012-09-20 Thread Ronald Hecht
On 09/19/2012 09:19 PM, Blue Swirl wrote: On Wed, Sep 19, 2012 at 3:30 PM, Ronald Hecht wrote: This patch adds SMP support to the LEON SPARC interrupt controller. I don't like that CPU status (halted/not halted) is accessed directly from the interrupt controller. How can th

Re: [Qemu-devel] [PATCH] Added more entries to the LEON processor configuration register

2012-09-20 Thread Ronald Hecht
On 09/19/2012 08:56 PM, Blue Swirl wrote: --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -2590,13 +2590,9 @@ static void disas_sparc_insn(DisasContext * dc, unsigned int insn) microSPARC II */ /* Read Asr17 */

[Qemu-devel] [PATCH RFC] hw/grlib: SMP support added to LEON interrupt controller

2012-09-19 Thread Ronald Hecht
This patch adds SMP support to the LEON SPARC interrupt controller. I don't like that CPU status (halted/not halted) is accessed directly from the interrupt controller. How can this be implemented more elegant? Ideally the CPUSPARCState should not be accessed directly. Signed-off-by: Ronald

[Qemu-devel] [PATCH] target-sparc: SPARC LEON power-down support added

2012-09-18 Thread Ronald Hecht
Signed-off-by: Ronald Hecht --- target-sparc/cpu.c |2 +- target-sparc/cpu.h |1 + target-sparc/helper.h |1 + target-sparc/ldst_helper.c |9 + target-sparc/translate.c |5 + 5 files changed, 17 insertions(+), 1 deletions(-) diff --git a

[Qemu-devel] [PATCH] Added more entries to the LEON processor configuration register

2012-09-18 Thread Ronald Hecht
Signed-off-by: Ronald Hecht --- target-sparc/helper.h |1 + target-sparc/ldst_helper.c |6 ++ target-sparc/translate.c | 10 +++--- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/target-sparc/helper.h b/target-sparc/helper.h index 74ecad1..23a2ad4 100644

[Qemu-devel] [PATCH] SPARC LEON power-down support added

2012-09-18 Thread Ronald Hecht
Signed-off-by: Ronald Hecht --- target-sparc/cpu.c |2 +- target-sparc/cpu.h |1 + target-sparc/helper.h |1 + target-sparc/ldst_helper.c |9 + target-sparc/translate.c |5 + 5 files changed, 17 insertions(+), 1 deletions(-) diff --git a

[Qemu-devel] [PATCH] Added LEON MMU ASI mappings and corrected LEON3 MMU masks.

2012-09-18 Thread Ronald Hecht
This patch adds SPARC ASI mappings that are used by the LEON processor.It also corrects the MMU context register and context table pointer mask of the LEON3. Signed-off-by: Ronald Hecht --- target-sparc/cpu.c |4 ++-- target-sparc/ldst_helper.c |6 ++ 2 files changed, 8

[Qemu-devel] [PATCH] Added LEON MMU ASI mappings and corrected LEON3 MMU masks.

2012-09-18 Thread Ronald Hecht
This patch adds SPARC ASI mappings that are used by the LEON processor.It also corrects the MMU context register and context table pointer mask of the LEON3. Signed-off-by: Ronald Hecht --- target-sparc/cpu.c |4 ++-- target-sparc/ldst_helper.c |6 ++ 2 files changed, 8