[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 2/4] target-mips: Move definition of uint_fast{8,
From: |
Andreas Färber |
Subject: |
[Qemu-devel] [PATCH v2 2/4] target-mips: Move definition of uint_fast{8, 16}_t to osdep.h |
Date: |
Thu, 26 Apr 2012 00:15:54 +0200 |
From: Andreas Färber <address@hidden>
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 <address@hidden>
Cc: Ben Taylor <address@hidden>
Cc: Aurélien Jarno <address@hidden>
Cc: Peter Maydell <address@hidden>
---
osdep.h | 6 ++++++
target-mips/cpu.h | 7 -------
2 files changed, 6 insertions(+), 7 deletions(-)
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;
--
1.7.7
- [Qemu-devel] [PATCH v2 0/4] softfloat: Fix build on Darwin (uint16), Andreas Färber, 2012/04/25
- [Qemu-devel] [PATCH v2 1/4] softfloat: Fix mixups of int and int16, Andreas Färber, 2012/04/25
- [Qemu-devel] [PATCH v2 2/4] target-mips: Move definition of uint_fast{8, 16}_t to osdep.h,
Andreas Färber <=
- [Qemu-devel] [PATCH v2 4/4] softfloat: Replace int16 type with int_fast16_t, Andreas Färber, 2012/04/25
- [Qemu-devel] [PATCH v2 3/4] softfloat: Replace uint16 type with uint_fast16_t, Andreas Färber, 2012/04/25
- Re: [Qemu-devel] [PATCH v2 0/4] softfloat: Fix build on Darwin (uint16), Bernhard Walle, 2012/04/26
- Re: [Qemu-devel] [PATCH v2 0/4] softfloat: Fix build on Darwin (uint16), Blue Swirl, 2012/04/28