summaryrefslogtreecommitdiffstats
path: root/target-sh4
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2016-01-26 18:17:20 +0000
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:30:21 -0600
commit1c742a9d1a73f2b1c78883a8670627eadffbc427 (patch)
treeff2c9385fbb886e92adc60a51e2e39827728324e /target-sh4
parentb55c4d3449ba5e57fbd51b9cdf1ee1bb8a290448 (diff)
downloadhqemu-1c742a9d1a73f2b1c78883a8670627eadffbc427.zip
hqemu-1c742a9d1a73f2b1c78883a8670627eadffbc427.tar.gz
sh4: Clean up includes
Clean up includes so that osdep.h is included first and headers which it implies are not included manually. This commit was created with scripts/clean-includes. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 1453832250-766-28-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'target-sh4')
-rw-r--r--target-sh4/cpu.c1
-rw-r--r--target-sh4/gdbstub.c2
-rw-r--r--target-sh4/helper.c6
-rw-r--r--target-sh4/monitor.c1
-rw-r--r--target-sh4/op_helper.c2
-rw-r--r--target-sh4/translate.c1
6 files changed, 6 insertions, 7 deletions
diff --git a/target-sh4/cpu.c b/target-sh4/cpu.c
index d7e2fbd..8621d70 100644
--- a/target-sh4/cpu.c
+++ b/target-sh4/cpu.c
@@ -19,6 +19,7 @@
* <http://www.gnu.org/licenses/lgpl-2.1.html>
*/
+#include "qemu/osdep.h"
#include "cpu.h"
#include "qemu-common.h"
#include "migration/vmstate.h"
diff --git a/target-sh4/gdbstub.c b/target-sh4/gdbstub.c
index a365a27..1b59ea8 100644
--- a/target-sh4/gdbstub.c
+++ b/target-sh4/gdbstub.c
@@ -17,7 +17,7 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#include "config.h"
+#include "qemu/osdep.h"
#include "qemu-common.h"
#include "exec/gdbstub.h"
diff --git a/target-sh4/helper.c b/target-sh4/helper.c
index eaececd..9d8b61c 100644
--- a/target-sh4/helper.c
+++ b/target-sh4/helper.c
@@ -16,11 +16,7 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdarg.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include <inttypes.h>
+#include "qemu/osdep.h"
#include "cpu.h"
diff --git a/target-sh4/monitor.c b/target-sh4/monitor.c
index a06f0d4..426e5d4 100644
--- a/target-sh4/monitor.c
+++ b/target-sh4/monitor.c
@@ -21,6 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
+#include "qemu/osdep.h"
#include "cpu.h"
#include "monitor/monitor.h"
#include "monitor/hmp-target.h"
diff --git a/target-sh4/op_helper.c b/target-sh4/op_helper.c
index a312118..368e687 100644
--- a/target-sh4/op_helper.c
+++ b/target-sh4/op_helper.c
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdlib.h>
+#include "qemu/osdep.h"
#include "cpu.h"
#include "exec/helper-proto.h"
#include "exec/cpu_ldst.h"
diff --git a/target-sh4/translate.c b/target-sh4/translate.c
index 7bc6216..9de5659 100644
--- a/target-sh4/translate.c
+++ b/target-sh4/translate.c
@@ -19,6 +19,7 @@
#define DEBUG_DISAS
+#include "qemu/osdep.h"
#include "cpu.h"
#include "disas/disas.h"
#include "tcg-op.h"
OpenPOWER on IntegriCloud