sim: m32r: move arch-specific settings to internal header

There's no need for these settings to be in sim-main.h which is shared
with common/ sim code, so move it all out to the existing m32r-sim.h.
Unfortunately, we can't yet drop the m32r-sim.h include from sim-main.h
as many of the generated CGEN files refer only to sim-main.h.  We'll
have to improve the CGEN interface before we can make more progress,
but this is at least a minor improvement.
This commit is contained in:
Mike Frysinger
2022-12-23 00:49:09 -05:00
parent 218366690f
commit f51d9c6a77
7 changed files with 33 additions and 22 deletions

View File

@@ -28,6 +28,8 @@
#include "cgen-ops.h"
#include <stdlib.h>
#include "m32r-sim.h"
/* Return the size of REGNO in bytes. */
static int