b97028b8c5
While we set env->bins when unwinding for ILLEGAL_INST, from e.g. csrrw, we weren't setting it for immediately illegal instructions. Add a testcase for mtval via both exception paths. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1060 Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20220604231004.49990-2-richard.henderson@linaro.org> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
22 lines
304 B
Plaintext
22 lines
304 B
Plaintext
ENTRY(_start)
|
|
|
|
SECTIONS
|
|
{
|
|
/* virt machine, RAM starts at 2gb */
|
|
. = 0x80000000;
|
|
.text : {
|
|
*(.text)
|
|
}
|
|
.rodata : {
|
|
*(.rodata)
|
|
}
|
|
/* align r/w section to next 2mb */
|
|
. = ALIGN(1 << 21);
|
|
.data : {
|
|
*(.data)
|
|
}
|
|
.bss : {
|
|
*(.bss)
|
|
}
|
|
}
|