fpu: move public header file to include/fpu
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
927d4878b0
commit
6b4c305cbd
2
configure
vendored
2
configure
vendored
@ -278,7 +278,7 @@ QEMU_CFLAGS="-fno-strict-aliasing $QEMU_CFLAGS"
|
|||||||
QEMU_CFLAGS="-Wall -Wundef -Wwrite-strings -Wmissing-prototypes $QEMU_CFLAGS"
|
QEMU_CFLAGS="-Wall -Wundef -Wwrite-strings -Wmissing-prototypes $QEMU_CFLAGS"
|
||||||
QEMU_CFLAGS="-Wstrict-prototypes -Wredundant-decls $QEMU_CFLAGS"
|
QEMU_CFLAGS="-Wstrict-prototypes -Wredundant-decls $QEMU_CFLAGS"
|
||||||
QEMU_CFLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE $QEMU_CFLAGS"
|
QEMU_CFLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE $QEMU_CFLAGS"
|
||||||
QEMU_INCLUDES="-I. -I\$(SRC_PATH) -I\$(SRC_PATH)/include -I\$(SRC_PATH)/fpu"
|
QEMU_INCLUDES="-I. -I\$(SRC_PATH) -I\$(SRC_PATH)/include"
|
||||||
if test "$debug_info" = "yes"; then
|
if test "$debug_info" = "yes"; then
|
||||||
CFLAGS="-g $CFLAGS"
|
CFLAGS="-g $CFLAGS"
|
||||||
LDFLAGS="-g $LDFLAGS"
|
LDFLAGS="-g $LDFLAGS"
|
||||||
|
@ -40,7 +40,7 @@ these four paragraphs for those parts of this code that are retained.
|
|||||||
*/
|
*/
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "softfloat.h"
|
#include "fpu/softfloat.h"
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------
|
/*----------------------------------------------------------------------------
|
||||||
| Primitive arithmetic functions, including multi-word arithmetic, and
|
| Primitive arithmetic functions, including multi-word arithmetic, and
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include "config-host.h"
|
#include "config-host.h"
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include "softfloat.h"
|
#include "fpu/softfloat.h"
|
||||||
|
|
||||||
#ifdef CONFIG_MACHINE_BSWAP_H
|
#ifdef CONFIG_MACHINE_BSWAP_H
|
||||||
#include <sys/endian.h>
|
#include <sys/endian.h>
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "fpa11.h"
|
#include "fpa11.h"
|
||||||
#include "softfloat.h"
|
#include "fpu/softfloat.h"
|
||||||
#include "fpopcode.h"
|
#include "fpopcode.h"
|
||||||
|
|
||||||
float64 float64_exp(float64 Fm);
|
float64 float64_exp(float64 Fm);
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "fpa11.h"
|
#include "fpa11.h"
|
||||||
#include "softfloat.h"
|
#include "fpu/softfloat.h"
|
||||||
#include "fpopcode.h"
|
#include "fpopcode.h"
|
||||||
|
|
||||||
floatx80 floatx80_exp(floatx80 Fm);
|
floatx80 floatx80_exp(floatx80 Fm);
|
||||||
|
@ -43,7 +43,7 @@ extern CPUARMState *user_registers;
|
|||||||
|
|
||||||
/* includes */
|
/* includes */
|
||||||
#include "fpsr.h" /* FP control and status register definitions */
|
#include "fpsr.h" /* FP control and status register definitions */
|
||||||
#include "softfloat.h"
|
#include "fpu/softfloat.h"
|
||||||
|
|
||||||
#define typeNone 0x00
|
#define typeNone 0x00
|
||||||
#define typeSingle 0x01
|
#define typeSingle 0x01
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "fpa11.h"
|
#include "fpa11.h"
|
||||||
#include "softfloat.h"
|
#include "fpu/softfloat.h"
|
||||||
#include "fpopcode.h"
|
#include "fpopcode.h"
|
||||||
//#include "fpmodule.h"
|
//#include "fpmodule.h"
|
||||||
//#include "fpmodule.inl"
|
//#include "fpmodule.inl"
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "fpa11.h"
|
#include "fpa11.h"
|
||||||
#include "softfloat.h"
|
#include "fpu/softfloat.h"
|
||||||
#include "fpopcode.h"
|
#include "fpopcode.h"
|
||||||
#include "fpa11.inl"
|
#include "fpa11.inl"
|
||||||
//#include "fpmodule.h"
|
//#include "fpmodule.h"
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "fpa11.h"
|
#include "fpa11.h"
|
||||||
#include "softfloat.h"
|
#include "fpu/softfloat.h"
|
||||||
#include "fpopcode.h"
|
#include "fpopcode.h"
|
||||||
#include "fpsr.h"
|
#include "fpsr.h"
|
||||||
//#include "fpmodule.h"
|
//#include "fpmodule.h"
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "fpa11.h"
|
#include "fpa11.h"
|
||||||
#include "softfloat.h"
|
#include "fpu/softfloat.h"
|
||||||
#include "fpopcode.h"
|
#include "fpopcode.h"
|
||||||
|
|
||||||
float32 float32_exp(float32 Fm);
|
float32 float32_exp(float32 Fm);
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
#include "exec/cpu-defs.h"
|
#include "exec/cpu-defs.h"
|
||||||
|
|
||||||
#include "softfloat.h"
|
#include "fpu/softfloat.h"
|
||||||
|
|
||||||
#define TARGET_HAS_ICE 1
|
#define TARGET_HAS_ICE 1
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "helper.h"
|
#include "helper.h"
|
||||||
#include "softfloat.h"
|
#include "fpu/softfloat.h"
|
||||||
|
|
||||||
#define FP_STATUS (env->fp_status)
|
#define FP_STATUS (env->fp_status)
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "softfloat.h"
|
#include "fpu/softfloat.h"
|
||||||
#include "helper.h"
|
#include "helper.h"
|
||||||
|
|
||||||
uint64_t cpu_alpha_load_fpcr (CPUAlphaState *env)
|
uint64_t cpu_alpha_load_fpcr (CPUAlphaState *env)
|
||||||
|
@ -611,7 +611,7 @@ static void gen_qual_roundmode(DisasContext *ctx, int fn11)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(CONFIG_SOFTFLOAT_INLINE)
|
#if defined(CONFIG_SOFTFLOAT_INLINE)
|
||||||
/* ??? The "softfloat.h" interface is to call set_float_rounding_mode.
|
/* ??? The "fpu/softfloat.h" interface is to call set_float_rounding_mode.
|
||||||
With CONFIG_SOFTFLOAT that expands to an out-of-line call that just
|
With CONFIG_SOFTFLOAT that expands to an out-of-line call that just
|
||||||
sets the one field. */
|
sets the one field. */
|
||||||
tcg_gen_st8_i32(tmp, cpu_env,
|
tcg_gen_st8_i32(tmp, cpu_env,
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
#include "exec/cpu-defs.h"
|
#include "exec/cpu-defs.h"
|
||||||
|
|
||||||
#include "softfloat.h"
|
#include "fpu/softfloat.h"
|
||||||
|
|
||||||
#define TARGET_HAS_ICE 1
|
#define TARGET_HAS_ICE 1
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
|
|
||||||
#include "exec/cpu-defs.h"
|
#include "exec/cpu-defs.h"
|
||||||
|
|
||||||
#include "softfloat.h"
|
#include "fpu/softfloat.h"
|
||||||
|
|
||||||
#define R_EAX 0
|
#define R_EAX 0
|
||||||
#define R_ECX 1
|
#define R_ECX 1
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
#include "exec/cpu-defs.h"
|
#include "exec/cpu-defs.h"
|
||||||
|
|
||||||
#include "softfloat.h"
|
#include "fpu/softfloat.h"
|
||||||
|
|
||||||
#define MAX_QREGS 32
|
#define MAX_QREGS 32
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
#define CPUArchState struct CPUMBState
|
#define CPUArchState struct CPUMBState
|
||||||
|
|
||||||
#include "exec/cpu-defs.h"
|
#include "exec/cpu-defs.h"
|
||||||
#include "softfloat.h"
|
#include "fpu/softfloat.h"
|
||||||
struct CPUMBState;
|
struct CPUMBState;
|
||||||
typedef struct CPUMBState CPUMBState;
|
typedef struct CPUMBState CPUMBState;
|
||||||
#if !defined(CONFIG_USER_ONLY)
|
#if !defined(CONFIG_USER_ONLY)
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
#include "mips-defs.h"
|
#include "mips-defs.h"
|
||||||
#include "exec/cpu-defs.h"
|
#include "exec/cpu-defs.h"
|
||||||
#include "softfloat.h"
|
#include "fpu/softfloat.h"
|
||||||
|
|
||||||
struct CPUMIPSState;
|
struct CPUMIPSState;
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ struct OpenRISCCPU;
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
#include "exec/cpu-defs.h"
|
#include "exec/cpu-defs.h"
|
||||||
#include "softfloat.h"
|
#include "fpu/softfloat.h"
|
||||||
#include "qom/cpu.h"
|
#include "qom/cpu.h"
|
||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@
|
|||||||
|
|
||||||
#include "exec/cpu-defs.h"
|
#include "exec/cpu-defs.h"
|
||||||
|
|
||||||
#include "softfloat.h"
|
#include "fpu/softfloat.h"
|
||||||
|
|
||||||
#define TARGET_HAS_ICE 1
|
#define TARGET_HAS_ICE 1
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
#include "exec/cpu-all.h"
|
#include "exec/cpu-all.h"
|
||||||
|
|
||||||
#include "softfloat.h"
|
#include "fpu/softfloat.h"
|
||||||
|
|
||||||
#define NB_MMU_MODES 3
|
#define NB_MMU_MODES 3
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
|
|
||||||
#include "exec/cpu-defs.h"
|
#include "exec/cpu-defs.h"
|
||||||
|
|
||||||
#include "softfloat.h"
|
#include "fpu/softfloat.h"
|
||||||
|
|
||||||
#define TARGET_PAGE_BITS 12 /* 4k XXXXX */
|
#define TARGET_PAGE_BITS 12 /* 4k XXXXX */
|
||||||
|
|
||||||
@ -230,8 +230,6 @@ static inline void cpu_set_tls(CPUSH4State *env, target_ulong newtls)
|
|||||||
|
|
||||||
void cpu_load_tlb(CPUSH4State * env);
|
void cpu_load_tlb(CPUSH4State * env);
|
||||||
|
|
||||||
#include "softfloat.h"
|
|
||||||
|
|
||||||
static inline CPUSH4State *cpu_init(const char *cpu_model)
|
static inline CPUSH4State *cpu_init(const char *cpu_model)
|
||||||
{
|
{
|
||||||
SuperHCPU *cpu = cpu_sh4_init(cpu_model);
|
SuperHCPU *cpu = cpu_sh4_init(cpu_model);
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
#include "exec/cpu-defs.h"
|
#include "exec/cpu-defs.h"
|
||||||
|
|
||||||
#include "softfloat.h"
|
#include "fpu/softfloat.h"
|
||||||
|
|
||||||
#define TARGET_HAS_ICE 1
|
#define TARGET_HAS_ICE 1
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
#include "exec/cpu-defs.h"
|
#include "exec/cpu-defs.h"
|
||||||
#include "softfloat.h"
|
#include "fpu/softfloat.h"
|
||||||
|
|
||||||
#define NB_MMU_MODES 2
|
#define NB_MMU_MODES 2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user