* [Qemu-devel] [PATCH] fix configure for mips o32
@ 2009-06-03 12:28 Arnaud Patard
2009-06-03 14:29 ` M. Warner Losh
2009-06-03 14:46 ` Paul Brook
0 siblings, 2 replies; 9+ messages in thread
From: Arnaud Patard @ 2009-06-03 12:28 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 252 bytes --]
The commit 1ad2134f914dfd4c8f92307c94c9a5a1e28f0059 is defining
target_phys_bits and set it to 64 for all mips machines including mipsel
machines which are 32 bit. This patch set it to 32.
Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
---
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: fix_configure.patch --]
[-- Type: text/x-diff, Size: 457 bytes --]
Index: qemu/configure
===================================================================
--- qemu.orig/configure
+++ qemu/configure
@@ -1970,7 +1970,7 @@ case "$target_cpu" in
echo "#define TARGET_ARCH \"mips\"" >> $config_h
echo "#define TARGET_MIPS 1" >> $config_h
echo "#define TARGET_ABI_MIPSO32 1" >> $config_h
- target_phys_bits=64
+ target_phys_bits=32
;;
mipsn32|mipsn32el)
echo "TARGET_ARCH=mipsn32" >> $config_mak
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [PATCH] fix configure for mips o32
2009-06-03 12:28 [Qemu-devel] [PATCH] fix configure for mips o32 Arnaud Patard
@ 2009-06-03 14:29 ` M. Warner Losh
2009-06-03 15:17 ` Arnaud Patard
2009-06-03 14:46 ` Paul Brook
1 sibling, 1 reply; 9+ messages in thread
From: M. Warner Losh @ 2009-06-03 14:29 UTC (permalink / raw)
To: arnaud.patard; +Cc: qemu-devel
In message: <87prdlv6wf.fsf@lechat.rtp-net.org>
Arnaud Patard (Rtp) <arnaud.patard@rtp-net.org> writes:
: The commit 1ad2134f914dfd4c8f92307c94c9a5a1e28f0059 is defining
: target_phys_bits and set it to 64 for all mips machines including mipsel
: machines which are 32 bit. This patch set it to 32.
But R4000PC and R4400PC machines ran in Little Endian mode and had
64-bit registers.
It is only the recent mips32 and mips32r2 machines that have 32-bit
registers...
Warner
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [PATCH] fix configure for mips o32
2009-06-03 14:29 ` M. Warner Losh
@ 2009-06-03 15:17 ` Arnaud Patard
0 siblings, 0 replies; 9+ messages in thread
From: Arnaud Patard @ 2009-06-03 15:17 UTC (permalink / raw)
To: M. Warner Losh; +Cc: qemu-devel
"M. Warner Losh" <imp@bsdimp.com> writes:
> In message: <87prdlv6wf.fsf@lechat.rtp-net.org>
> Arnaud Patard (Rtp) <arnaud.patard@rtp-net.org> writes:
> : The commit 1ad2134f914dfd4c8f92307c94c9a5a1e28f0059 is defining
> : target_phys_bits and set it to 64 for all mips machines including mipsel
> : machines which are 32 bit. This patch set it to 32.
>
> But R4000PC and R4400PC machines ran in Little Endian mode and had
> 64-bit registers.
>
> It is only the recent mips32 and mips32r2 machines that have 32-bit
> registers...
I'm sorry but I don't get your point. Qemu should work on all cpu. 4Kc &
friends are currently supports (according to the -M switch) and iirc
theses beasts have 32bit address path not 64. I really fear that setting
64 will break them. That's why I've sent this patch. If keeping 64bit
breaks 4Kc and if switching to 32 break r4k, an other solution will have
to be found imho
Arnaud
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [PATCH] fix configure for mips o32
2009-06-03 12:28 [Qemu-devel] [PATCH] fix configure for mips o32 Arnaud Patard
2009-06-03 14:29 ` M. Warner Losh
@ 2009-06-03 14:46 ` Paul Brook
2009-06-03 15:20 ` Arnaud Patard
1 sibling, 1 reply; 9+ messages in thread
From: Paul Brook @ 2009-06-03 14:46 UTC (permalink / raw)
To: qemu-devel; +Cc: Arnaud Patard (Rtp)
On Wednesday 03 June 2009, Arnaud Patard wrote:
> The commit 1ad2134f914dfd4c8f92307c94c9a5a1e28f0059 is defining
> target_phys_bits and set it to 64 for all mips machines including mipsel
> machines which are 32 bit. This patch set it to 32.
MIPS32 CPUs have a 36-bit physical address space. That's what the old code
said anyway.
Paul
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [PATCH] fix configure for mips o32
2009-06-03 14:46 ` Paul Brook
@ 2009-06-03 15:20 ` Arnaud Patard
2009-06-03 15:22 ` Paul Brook
2009-06-03 15:34 ` M. Warner Losh
0 siblings, 2 replies; 9+ messages in thread
From: Arnaud Patard @ 2009-06-03 15:20 UTC (permalink / raw)
To: Paul Brook; +Cc: qemu-devel
Paul Brook <paul@codesourcery.com> writes:
> On Wednesday 03 June 2009, Arnaud Patard wrote:
>> The commit 1ad2134f914dfd4c8f92307c94c9a5a1e28f0059 is defining
>> target_phys_bits and set it to 64 for all mips machines including mipsel
>> machines which are 32 bit. This patch set it to 32.
>
> MIPS32 CPUs have a 36-bit physical address space. That's what the old code
> said anyway.
Is there more information than that in the old code ? I really thought
mips32 4Kc have 32-bit address paths not 36.
Arnaud
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [PATCH] fix configure for mips o32
2009-06-03 15:20 ` Arnaud Patard
@ 2009-06-03 15:22 ` Paul Brook
2009-06-04 9:18 ` Arnaud Patard
2009-06-03 15:34 ` M. Warner Losh
1 sibling, 1 reply; 9+ messages in thread
From: Paul Brook @ 2009-06-03 15:22 UTC (permalink / raw)
To: qemu-devel; +Cc: Arnaud Patard (Rtp)
On Wednesday 03 June 2009, Arnaud Patard wrote:
> Paul Brook <paul@codesourcery.com> writes:
> > On Wednesday 03 June 2009, Arnaud Patard wrote:
> >> The commit 1ad2134f914dfd4c8f92307c94c9a5a1e28f0059 is defining
> >> target_phys_bits and set it to 64 for all mips machines including mipsel
> >> machines which are 32 bit. This patch set it to 32.
> >
> > MIPS32 CPUs have a 36-bit physical address space. That's what the old
> > code said anyway.
>
> Is there more information than that in the old code ? I really thought
> mips32 4Kc have 32-bit address paths not 36.
I suspect you're confusing physical and virtual addresses.
> I really fear that setting 64 will break them.
If this were true they'd already be broken on 64-bit hosts.
Paul
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [PATCH] fix configure for mips o32
2009-06-03 15:22 ` Paul Brook
@ 2009-06-04 9:18 ` Arnaud Patard
2009-06-05 7:29 ` M. Warner Losh
0 siblings, 1 reply; 9+ messages in thread
From: Arnaud Patard @ 2009-06-04 9:18 UTC (permalink / raw)
To: Paul Brook; +Cc: qemu-devel
Paul Brook <paul@codesourcery.com> writes:
Hi,
> On Wednesday 03 June 2009, Arnaud Patard wrote:
>> Paul Brook <paul@codesourcery.com> writes:
>> > On Wednesday 03 June 2009, Arnaud Patard wrote:
>> >> The commit 1ad2134f914dfd4c8f92307c94c9a5a1e28f0059 is defining
>> >> target_phys_bits and set it to 64 for all mips machines including mipsel
>> >> machines which are 32 bit. This patch set it to 32.
>> >
>> > MIPS32 CPUs have a 36-bit physical address space. That's what the old
>> > code said anyway.
>>
>> Is there more information than that in the old code ? I really thought
>> mips32 4Kc have 32-bit address paths not 36.
>
> I suspect you're confusing physical and virtual addresses.
>
fwiw, found out where I read that. At
http://www.mips.com/products/processors/hard-ip-cores/4kc-hard-ip-core/.
Arnaud
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [PATCH] fix configure for mips o32
2009-06-04 9:18 ` Arnaud Patard
@ 2009-06-05 7:29 ` M. Warner Losh
0 siblings, 0 replies; 9+ messages in thread
From: M. Warner Losh @ 2009-06-05 7:29 UTC (permalink / raw)
To: arnaud.patard; +Cc: paul, qemu-devel
In message: <87r5y0tkzg.fsf@lechat.rtp-net.org>
Arnaud Patard (Rtp) <arnaud.patard@rtp-net.org> writes:
: Paul Brook <paul@codesourcery.com> writes:
:
: Hi,
:
: > On Wednesday 03 June 2009, Arnaud Patard wrote:
: >> Paul Brook <paul@codesourcery.com> writes:
: >> > On Wednesday 03 June 2009, Arnaud Patard wrote:
: >> >> The commit 1ad2134f914dfd4c8f92307c94c9a5a1e28f0059 is defining
: >> >> target_phys_bits and set it to 64 for all mips machines including mipsel
: >> >> machines which are 32 bit. This patch set it to 32.
: >> >
: >> > MIPS32 CPUs have a 36-bit physical address space. That's what the old
: >> > code said anyway.
: >>
: >> Is there more information than that in the old code ? I really thought
: >> mips32 4Kc have 32-bit address paths not 36.
: >
: > I suspect you're confusing physical and virtual addresses.
: >
:
: fwiw, found out where I read that. At
: http://www.mips.com/products/processors/hard-ip-cores/4kc-hard-ip-core/.
None-the-less, mipsel for arc has 36-bit addresses. The patch is bad.
Warner
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] [PATCH] fix configure for mips o32
2009-06-03 15:20 ` Arnaud Patard
2009-06-03 15:22 ` Paul Brook
@ 2009-06-03 15:34 ` M. Warner Losh
1 sibling, 0 replies; 9+ messages in thread
From: M. Warner Losh @ 2009-06-03 15:34 UTC (permalink / raw)
To: arnaud.patard; +Cc: paul, qemu-devel
In message: <87ws7ttkch.fsf@lechat.rtp-net.org>
Arnaud Patard (Rtp) <arnaud.patard@rtp-net.org> writes:
: Paul Brook <paul@codesourcery.com> writes:
:
: > On Wednesday 03 June 2009, Arnaud Patard wrote:
: >> The commit 1ad2134f914dfd4c8f92307c94c9a5a1e28f0059 is defining
: >> target_phys_bits and set it to 64 for all mips machines including mipsel
: >> machines which are 32 bit. This patch set it to 32.
: >
: > MIPS32 CPUs have a 36-bit physical address space. That's what the old code
: > said anyway.
:
: Is there more information than that in the old code ? I really thought
: mips32 4Kc have 32-bit address paths not 36.
Are you talking virtual addresses or physical addresses? arc machines
are little endian and have 36-bit physical addresses because they are
based on the r4400 processors. And much of the hardware is located
above 4GB, so needs to be accessed through special TLB entries.
Of course, this is orthogonal to my original point: mipsel and mips
specify the endian of the machines, not the underlying size.
Warner
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-06-05 7:31 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-03 12:28 [Qemu-devel] [PATCH] fix configure for mips o32 Arnaud Patard
2009-06-03 14:29 ` M. Warner Losh
2009-06-03 15:17 ` Arnaud Patard
2009-06-03 14:46 ` Paul Brook
2009-06-03 15:20 ` Arnaud Patard
2009-06-03 15:22 ` Paul Brook
2009-06-04 9:18 ` Arnaud Patard
2009-06-05 7:29 ` M. Warner Losh
2009-06-03 15:34 ` M. Warner Losh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).