From dda3c2ee335480c52acfe354d0f4d1198268f7b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Thu, 26 Apr 2012 00:15:54 +0200 Subject: [PATCH] target-mips: Move definition of uint_fast{8, 16}_t to osdep.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit osdep.h is included via qemu-common.h. Prepares for use of [u]int_fast*_t types in softfloat code. Signed-off-by: Andreas Färber Cc: Ben Taylor Cc: Aurélien Jarno Cc: Peter Maydell Tested-by: Bernhard Walle Signed-off-by: Blue Swirl --- osdep.h | 6 ++++++ target-mips/cpu.h | 7 ------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/osdep.h b/osdep.h index 428285c7e0..095407dd7d 100644 --- a/osdep.h +++ b/osdep.h @@ -10,6 +10,12 @@ #include +#if defined(CONFIG_SOLARIS) && CONFIG_SOLARIS_VERSION < 10 +/* [u]int_fast*_t not in */ +typedef unsigned char uint_fast8_t; +typedef unsigned int uint_fast16_t; +#endif + #ifndef glue #define xglue(x, y) x ## y #define glue(x, y) xglue(x, y) diff --git a/target-mips/cpu.h b/target-mips/cpu.h index 257c4c462b..f156c066a8 100644 --- a/target-mips/cpu.h +++ b/target-mips/cpu.h @@ -15,13 +15,6 @@ #include "cpu-defs.h" #include "softfloat.h" -// uint_fast8_t and uint_fast16_t not in -// XXX: move that elsewhere -#if defined(CONFIG_SOLARIS) && CONFIG_SOLARIS_VERSION < 10 -typedef unsigned char uint_fast8_t; -typedef unsigned int uint_fast16_t; -#endif - struct CPUMIPSState; typedef struct r4k_tlb_t r4k_tlb_t; -- GitLab