qemu-ppc
[Top][All Lists]
Advanced

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

Re: [Qemu-ppc] [Qemu-devel] [PATCH 2/2] PPC: fix hreset_vector for 60x,


From: Alexander Graf
Subject: Re: [Qemu-ppc] [Qemu-devel] [PATCH 2/2] PPC: fix hreset_vector for 60x, 7x0, 7x5, G2, MPC8xx, MPC5xx, 7400 and 7450
Date: Tue, 2 Apr 2013 10:56:03 +0200

On 02.04.2013, at 09:53, Fabien Chouteau wrote:

> On 04/02/2013 10:09 AM, Alexander Graf wrote:
>> 
>> On 29.03.2013, at 13:06, Fabien Chouteau wrote:
>> 
>>> According to the different user's manuals, the vector offset for system
>>> reset (both /HRESET and /SRESET) is 0x00100.
>>> 
>>> This patch may break support of some executables, as the power-on start
>>> address may change. For a specific board, if the power-on start address
>>> is different than HRESET vector (i.e. 0x00000100 or 0xfff00100), this
>>> should be fixed in board's initialization code.
>>> 
>>> Signed-off-by: Fabien Chouteau <address@hidden>
>> 
>> What about the other users of hreset_vector? Can we just remove the variable 
>> altogether?
>> 
> 
> For the CPUs that don't implement MSR[IP], the hreset_prefix is always
> 0x00000000, so hreset_vector will be the reset address (i.e. 0xFFFFFFFC)
> 
> I guess all this can be converted to a CPU feature flag, telling if
> reset is an exception or not.

Hrm, maybe. Not sure which way is cleaner.

I'll apply your patch for now. It's certainly a step into the right direction.


Alex




reply via email to

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