summaryrefslogtreecommitdiffstats
path: root/linux-headers
diff options
context:
space:
mode:
authorAlexChen2020-11-03 10:32:01 +0100
committerPhilippe Mathieu-Daudé2020-11-03 16:51:13 +0100
commita300c04f136a70c507e6f481b028363c879d16e5 (patch)
treec3a159050df7d1409ea5a4beca58116a728d1307 /linux-headers
parenthw/mips/boston: Fix Lesser GPL version number (diff)
downloadqemu-a300c04f136a70c507e6f481b028363c879d16e5.tar.gz
qemu-a300c04f136a70c507e6f481b028363c879d16e5.tar.xz
qemu-a300c04f136a70c507e6f481b028363c879d16e5.zip
hw/intc/loongson: Fix incorrect 'core' calculation in liointc_read/write
According to the loongson spec (http://www.loongson.cn/uploadfile/cpu/3B1500/Loongson_3B1500_cpu_user_1.pdf) and the macro definition(#define R_PERCORE_ISR(x) (0x40 + 0x8 * x)), we know that the ISR size per CORE is 8, so here we need to divide (addr - R_PERCORE_ISR(0)) by 8, not 4. Reported-by: Euler Robot <euler.robot@huawei.com> Signed-off-by: Alex Chen <alex.chen@huawei.com> Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <5FA12391.8090400@huawei.com> [PMD: Shortened subject] Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'linux-headers')
0 files changed, 0 insertions, 0 deletions