Re: [Qemu-devel] [PATCH] Choose emulated MIPS CPU at runtime

2007-03-25 Thread Stefan Weil
Thiemo Seufer schrieb: Stefan Weil wrote: There exists also an older 4KEc version which only supports MIPS32R1. AR7 (a SoC from TI) is based on this older version. This can't be correct. 4KEc is defined as a MIPS32R2 core by MIPS Technologies. A MIPS32R1 4KEc would be redundant since that's

Re: [Qemu-devel] [PATCH] Choose emulated MIPS CPU at runtime

2007-03-25 Thread Thiemo Seufer
Stefan Weil wrote: [snip] Perhaps some readers of the list have more information? I noticed this because some code using DI worked well with QEMU, but my AR7 based DSL router crashed... Did it die with an RI exception? If not then it sounds more like a missing ehb barrier. Qemu doesn't

Re: [Qemu-devel] [PATCH] Choose emulated MIPS CPU at runtime

2007-03-06 Thread Daniel Jacobowitz
On Tue, Mar 06, 2007 at 04:47:14PM +0100, Hervé Poussineau wrote: Hi, This patch uses the new -cpu command line option, to choose the CPU at runtime (R4Kc/R4Kp and FPU/no FPU) The model can be extended to emulate more accurately some CPUs. This removes the MIPS_USES_FPU compilation time

Re: [Qemu-devel] [PATCH] Choose emulated MIPS CPU at runtime

2007-03-06 Thread Thiemo Seufer
Hervé Poussineau wrote: Hi, This patch uses the new -cpu command line option, to choose the CPU at runtime (R4Kc/R4Kp and FPU/no FPU) The model can be extended to emulate more accurately some CPUs. This removes the MIPS_USES_FPU compilation time option, and replaces by a runtime one.

[Qemu-devel] [PATCH] Choose emulated MIPS CPU at runtime #2

2007-03-06 Thread Hervé Poussineau
Hi, This patch uses the new -cpu command line option, to choose the CPU model at runtime. It takes care of Thiemo's remarks about existing CPU models. It defaults to MIPS 4KEc in 32bits mode, and R4000 in 64bits mode. To answer Daniel's concerns, the FPU bit in the CPU structure is set only if

Re: [Qemu-devel] [PATCH] Choose emulated MIPS CPU at runtime

2007-03-06 Thread Stefan Weil
Thiemo Seufer schrieb: Looks very nice, except that the CPU models are out of touch with reality. :-) - There is no CPU called R4Kc etc. - What Qemu emulates is currently close to a 4KEc with an R3000-style FPU attached. (A 4KEc is a 4Kc with MIPS32R2 instructions.) There exists also an older

Re: [Qemu-devel] [PATCH] Choose emulated MIPS CPU at runtime

2007-03-06 Thread Thiemo Seufer
Thiemo Seufer wrote: [snip] I think this could be done similar to the FPU switch, but I don't have a list of the differences, and there are no MIPS32R2 markers in the QEMU code :-( The specificiation for MIPS{32,64}R{1,2} used to be hidden behind a free registration nag screen at

Re: [Qemu-devel] [PATCH] Choose emulated MIPS CPU at runtime

2007-03-06 Thread Thiemo Seufer
Stefan Weil wrote: Thiemo Seufer schrieb: Looks very nice, except that the CPU models are out of touch with reality. :-) - There is no CPU called R4Kc etc. - What Qemu emulates is currently close to a 4KEc with an R3000-style FPU attached. (A 4KEc is a 4Kc with MIPS32R2 instructions.)