diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-12-19 15:09:57 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-12-24 14:05:28 +0300 |
commit | 7dcb1e1753e9c5daec0580779ea8c31778bff152 (patch) | |
tree | 656e705d4b88996733f03d0bd8067a85ee67ec87 /docs/firmware | |
parent | a029bd90c63307e9ef2d7ddbaa2eb2c799fca98a (diff) | |
download | opensbi-7dcb1e1753e9c5daec0580779ea8c31778bff152.tar.xz |
lib: sbi: Fix sign-extension in sbi_misaligned_load_handler()
The misaligned load emulation does not sign-extend values correctly
due to missing sign typecast in value passed to the SET_RD() macro.
A very easy way to reproduce this issue is to load 16-bit value
0xff1e from a byte aligned address using LH instruction on hardware
lacking misaligned load/store.
This patch fixes sbi_misaligned_load_handler() for above issue.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'docs/firmware')
0 files changed, 0 insertions, 0 deletions