mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00

Allow both user-only and system mode to run pa2.0 cpus. Avoid creating a separate qemu-system-hppa64 binary; force the qemu-hppa binary to use TARGET_ABI32. Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
24 lines
546 B
C
24 lines
546 B
C
/*
|
|
* PA-RISC cpu parameters for qemu.
|
|
*
|
|
* Copyright (c) 2016 Richard Henderson <rth@twiddle.net>
|
|
* SPDX-License-Identifier: LGPL-2.0+
|
|
*/
|
|
|
|
#ifndef HPPA_CPU_PARAM_H
|
|
#define HPPA_CPU_PARAM_H
|
|
|
|
#define TARGET_LONG_BITS 64
|
|
#define TARGET_REGISTER_BITS 64
|
|
|
|
#if defined(CONFIG_USER_ONLY) && defined(TARGET_ABI32)
|
|
# define TARGET_PHYS_ADDR_SPACE_BITS 32
|
|
# define TARGET_VIRT_ADDR_SPACE_BITS 32
|
|
#else
|
|
# define TARGET_PHYS_ADDR_SPACE_BITS 64
|
|
# define TARGET_VIRT_ADDR_SPACE_BITS 64
|
|
#endif
|
|
|
|
#define TARGET_PAGE_BITS 12
|
|
|
|
#endif
|