qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] target-mips: Fix 32 bit mode (wrong size of phy


From: Stefan Weil
Subject: Re: [Qemu-devel] [PATCH] target-mips: Fix 32 bit mode (wrong size of physical addresses)
Date: Sun, 14 Mar 2010 17:28:51 +0100
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090707)

Paul Brook schrieb:
>> Commit 30724e758a21ba9f807efafe268626bd479db9de breaks
>> malta (and other) mips 32 bit emulation.
>>
>> Fixing the physical address size for 32 bit machines
>> makes it work again.
>
>> -#define TARGET_PHYS_ADDR_SPACE_BITS 36
>> +#define TARGET_PHYS_ADDR_SPACE_BITS 32
>
> This is almost certainly the wrong change.
>
> Paul

Yes, Aurelien already said this, too, and I agree that my patch
fixes the problem but is the wrong solution.

The wrong part seems to be loading or starting of the elf kernel image:
the "boot loader" jumps to a memory location which is filled with
nops (0). Either the load address of the kernel code is wrong, or
the boot loader jumps to the wrong address.

The problem is also malta specific - mips ar7 emulation works fine.
I did not test the other mips machines, so I cannot say whether they
have this problem, too (maybe yes because of code copy + paste).

Regards,
Stefan






reply via email to

[Prev in Thread] Current Thread [Next in Thread]