mirror of
https://github.com/mii443/qemu.git
synced 2025-09-03 15:49:30 +00:00
plugins: fix-up handling of internal hostaddr for 32 bit
The compiler rightly complains when we build on 32 bit that casting uint64_t into a void is a bad idea. We are really dealing with a host pointer at this point so treat it as such. This does involve a uintptr_t cast of the result of the TLB addend as we know that has to point to the host memory. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210709143005.1554-28-alex.bennee@linaro.org>
This commit is contained in:
@ -18,7 +18,7 @@ struct qemu_plugin_hwaddr {
|
||||
hwaddr offset;
|
||||
} io;
|
||||
struct {
|
||||
uint64_t hostaddr;
|
||||
void *hostaddr;
|
||||
} ram;
|
||||
} v;
|
||||
};
|
||||
|
Reference in New Issue
Block a user