mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
meson: target
Similar to hw_arch, each architecture defines two sourceset which are placed in dictionaries target_arch and target_softmmu_arch. These are then picked up from there when building the per-emulator static_library. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
2c44220d05
commit
abff1abfe8
62 changed files with 595 additions and 328 deletions
|
@ -1,11 +0,0 @@
|
|||
obj-y += translate.o op_helper.o helper.o cpu.o gdbstub.o disas.o
|
||||
|
||||
DECODETREE = $(SRC_PATH)/scripts/decodetree.py
|
||||
|
||||
target/rx/decode.c.inc: \
|
||||
$(SRC_PATH)/target/rx/insns.decode $(DECODETREE)
|
||||
$(call quiet-command,\
|
||||
$(PYTHON) $(DECODETREE) --varinsnwidth 32 -o $@ $<, "GEN", $(TARGET_DIR)$@)
|
||||
|
||||
target/rx/translate.o: target/rx/decode.c.inc
|
||||
target/rx/disas.o: target/rx/decode.c.inc
|
|
@ -100,7 +100,7 @@ static int bdsp_s(DisasContext *ctx, int d)
|
|||
}
|
||||
|
||||
/* Include the auto-generated decoder. */
|
||||
#include "decode.c.inc"
|
||||
#include "decode-insns.c.inc"
|
||||
|
||||
static void dump_bytes(DisasContext *ctx)
|
||||
{
|
||||
|
|
16
target/rx/meson.build
Normal file
16
target/rx/meson.build
Normal file
|
@ -0,0 +1,16 @@
|
|||
gen = [
|
||||
decodetree.process('insns.decode', extra_args: [ '--varinsnwidth', '32' ])
|
||||
]
|
||||
|
||||
rx_ss = ss.source_set()
|
||||
rx_ss.add(gen)
|
||||
rx_ss.add(files(
|
||||
'translate.c',
|
||||
'op_helper.c',
|
||||
'helper.c',
|
||||
'cpu.c',
|
||||
'gdbstub.c',
|
||||
'disas.c'))
|
||||
|
||||
target_arch += {'rx': rx_ss}
|
||||
target_softmmu_arch += {'rx': ss.source_set()}
|
|
@ -124,7 +124,7 @@ static int bdsp_s(DisasContext *ctx, int d)
|
|||
}
|
||||
|
||||
/* Include the auto-generated decoder. */
|
||||
#include "decode.c.inc"
|
||||
#include "decode-insns.c.inc"
|
||||
|
||||
void rx_cpu_dump_state(CPUState *cs, FILE *f, int flags)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue