bsp/riscv: Store/AMO address misaligned trap occured
Sebastian Huber
sebastian.huber at embedded-brains.de
Fri Nov 4 07:07:36 UTC 2022
On 03/11/2022 06:40, Padmarao.Begari at microchip.com wrote:
>> On Wed, 2022-11-02 at 09:58 -0600, Gedare Bloom wrote:
>>
>> t0 contains the address of .Lsecondary_processor_go
>>
>> start.S has:
>> ```asm
>> #if __riscv_xlen == 32
>> .align 2
>> #elif __riscv_xlen == 64
>> .align 3
>> #endif
>>
>> .Lsecondary_processor_go:
>> ```
>> Can you confirm the value of __riscv_xlen is properly defined to 64
>> for the PolarFire?
>>
> No, the value of __riscv_xlen is showing 32(config.log) instead of 64
> for PolarFire SoC and other 64-bit RISCV BSPs.
This is a compiler built-in define. It doesn't matter what is in the
config.log. What matters is that the compiler is invoked with the right
options. In my build this looks all right.
What is the value of t0 in
amoswap.w zero, zero, 0(t0)
?
Does it help to revert the commit?
--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax: +49-89-18 94 741 - 08
Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
More information about the devel
mailing list