OSDN Git Service

accel/tcg: Allow the second page of an instruction to be MMIO
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 6 Feb 2023 19:26:29 +0000 (09:26 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 21 Feb 2023 18:44:13 +0000 (08:44 -1000)
commit2627e4524ea6c6ba14f9d6b298e08c9d4d3cc4fe
treef41b2d92a51d05330104f1fa30c9df549f642b44
parent79b677d658d3d35e1e776826ac4abb28cdce69b8
accel/tcg: Allow the second page of an instruction to be MMIO

If an instruction straddles a page boundary, and the first page
was ram, but the second page was MMIO, we would abort.  Handle
this as if both pages are MMIO, by setting the ram_addr_t for
the first page to -1.

Reported-by: Sid Manning <sidneym@quicinc.com>
Reported-by: Jørgen Hansen <Jorgen.Hansen@wdc.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/translator.c