mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
exec: Declare vaddr as a generic target-agnostic type
Move vaddr type declaration to the generic "exec/cpu-common.h" header. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20220207075426.81934-4-f4bug@amsat.org>
This commit is contained in:
parent
be0d87acae
commit
06445fbdb6
2 changed files with 13 additions and 12 deletions
|
@ -7,6 +7,18 @@
|
||||||
#include "exec/hwaddr.h"
|
#include "exec/hwaddr.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* vaddr:
|
||||||
|
* Type wide enough to contain any #target_ulong virtual address.
|
||||||
|
*/
|
||||||
|
typedef uint64_t vaddr;
|
||||||
|
#define VADDR_PRId PRId64
|
||||||
|
#define VADDR_PRIu PRIu64
|
||||||
|
#define VADDR_PRIo PRIo64
|
||||||
|
#define VADDR_PRIx PRIx64
|
||||||
|
#define VADDR_PRIX PRIX64
|
||||||
|
#define VADDR_MAX UINT64_MAX
|
||||||
|
|
||||||
/* Using intptr_t ensures that qemu_*_page_mask is sign-extended even
|
/* Using intptr_t ensures that qemu_*_page_mask is sign-extended even
|
||||||
* when intptr_t is 32-bit and we are aligning a long long.
|
* when intptr_t is 32-bit and we are aligning a long long.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
#include "hw/qdev-core.h"
|
#include "hw/qdev-core.h"
|
||||||
#include "disas/dis-asm.h"
|
#include "disas/dis-asm.h"
|
||||||
|
#include "exec/cpu-common.h"
|
||||||
#include "exec/hwaddr.h"
|
#include "exec/hwaddr.h"
|
||||||
#include "exec/memattrs.h"
|
#include "exec/memattrs.h"
|
||||||
#include "qapi/qapi-types-run-state.h"
|
#include "qapi/qapi-types-run-state.h"
|
||||||
|
@ -35,18 +36,6 @@
|
||||||
typedef int (*WriteCoreDumpFunction)(const void *buf, size_t size,
|
typedef int (*WriteCoreDumpFunction)(const void *buf, size_t size,
|
||||||
void *opaque);
|
void *opaque);
|
||||||
|
|
||||||
/**
|
|
||||||
* vaddr:
|
|
||||||
* Type wide enough to contain any #target_ulong virtual address.
|
|
||||||
*/
|
|
||||||
typedef uint64_t vaddr;
|
|
||||||
#define VADDR_PRId PRId64
|
|
||||||
#define VADDR_PRIu PRIu64
|
|
||||||
#define VADDR_PRIo PRIo64
|
|
||||||
#define VADDR_PRIx PRIx64
|
|
||||||
#define VADDR_PRIX PRIX64
|
|
||||||
#define VADDR_MAX UINT64_MAX
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SECTION:cpu
|
* SECTION:cpu
|
||||||
* @section_id: QEMU-cpu
|
* @section_id: QEMU-cpu
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue