[06/20] sim: ft32: move arch-specific settings to internal header

Message ID 20221223060713.28821-7-vapier@gentoo.org
State Committed
Commit 84bc490d588a8b7bcdae002e3b5876c5b7c289a8
Headers
Series sim: reduce sim-main.h pollution |

Commit Message

Mike Frysinger Dec. 23, 2022, 6:06 a.m. UTC
  There's no need for these settings to be in sim-main.h which is shared
with common/ sim code, so drop the ft32-sim.h include and move it to
the few files that actually need it.
---
 sim/ft32/interp.c   | 2 ++
 sim/ft32/sim-main.h | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/sim/ft32/interp.c b/sim/ft32/interp.c
index 9324475709e2..dfea4720c220 100644
--- a/sim/ft32/interp.c
+++ b/sim/ft32/interp.c
@@ -37,6 +37,8 @@ 
 
 #include "opcode/ft32.h"
 
+#include "ft32-sim.h"
+
 /*
  * FT32 is a Harvard architecture: RAM and code occupy
  * different address spaces.
diff --git a/sim/ft32/sim-main.h b/sim/ft32/sim-main.h
index 5c84f9e2f219..4529d0187560 100644
--- a/sim/ft32/sim-main.h
+++ b/sim/ft32/sim-main.h
@@ -24,6 +24,4 @@ 
 #include "sim-basics.h"
 #include "sim-base.h"
 
-#include "ft32-sim.h"
-
 #endif