move all static vars in translate.c to tcg.h

This commit is contained in:
Nguyen Anh Quynh 2021-12-07 04:53:32 +08:00
parent 7918a6e462
commit 09b0c66f11
3 changed files with 256 additions and 249 deletions

View File

@ -7,7 +7,7 @@ Todo:
- fix qemu/target/s390x/cpu.c, so sample_s390x works
- enable building all arch to fix conflicts
- remove all static vars in qemu/target/s390x/translate.c
- remove all static vars in qemu/target/s390x/translate.c [DONE in branch "static-vars"]
- support more registers in qemu/target/s390x/unicorn.c
- storage-keys needed?
- find & fix potential memory leaking with valgrind

View File

@ -791,6 +791,19 @@ struct TCGContext {
TCGv NULL_QREG;
/* Used to distinguish stores from bad addressing modes. */
TCGv store_dummy;
// target/s390x/translate.c
TCGv_i64 psw_addr;
TCGv_i64 psw_mask;
TCGv_i64 gbea;
TCGv_i32 cc_op;
TCGv_i64 cc_src;
TCGv_i64 cc_dst;
TCGv_i64 cc_vr;
char s390x_cpu_reg_names[16][4]; // renamed from original cpu_reg_names[][] to avoid name clash with m68k
TCGv_i64 regs[16];
};
static inline size_t temp_idx(TCGContext *tcg_ctx, TCGTemp *ts)

File diff suppressed because it is too large Load Diff