diff mbox

[v2,2/4] target-mips: Move definition of uint_fast{8, 16}_t to osdep.h

Message ID 1335392156-13616-3-git-send-email-andreas.faerber@web.de
State New
Headers show

Commit Message

Andreas Färber April 25, 2012, 10:15 p.m. UTC
From: Andreas Färber <afaerber@suse.de>

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 <afaerber@suse.de>
Cc: Ben Taylor <bentaylor.solx86@gmail.com>
Cc: Aurélien Jarno <aurelien@aurel32.net>
Cc: Peter Maydell <peter.maydell@linaro.org>
---
 osdep.h           |    6 ++++++
 target-mips/cpu.h |    7 -------
 2 files changed, 6 insertions(+), 7 deletions(-)

Comments

Peter Maydell April 26, 2012, 4:11 p.m. UTC | #1
On 25 April 2012 23:15, Andreas Färber <andreas.faerber@web.de> wrote:
> From: Andreas Färber <afaerber@suse.de>
>
> 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 <afaerber@suse.de>
> Cc: Ben Taylor <bentaylor.solx86@gmail.com>
> Cc: Aurélien Jarno <aurelien@aurel32.net>
> Cc: Peter Maydell <peter.maydell@linaro.org>

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>

-- PMM
diff mbox

Patch

diff --git a/osdep.h b/osdep.h
index 428285c..095407d 100644
--- a/osdep.h
+++ b/osdep.h
@@ -10,6 +10,12 @@ 
 
 #include <sys/time.h>
 
+#if defined(CONFIG_SOLARIS) && CONFIG_SOLARIS_VERSION < 10
+/* [u]int_fast*_t not in <sys/int_types.h> */
+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 257c4c4..f156c06 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 <sys/int_types.h>
-// 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;