mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-03 20:15:36 +00:00
translate-all.c: make code_bitmap 64-bit, fix issue #646
This commit is contained in:
parent
428cb83060
commit
1a222e8904
|
@ -81,7 +81,7 @@ typedef struct PageDesc {
|
||||||
/* in order to optimize self modifying code, we count the number
|
/* in order to optimize self modifying code, we count the number
|
||||||
of lookups we do to a given page to use a bitmap */
|
of lookups we do to a given page to use a bitmap */
|
||||||
unsigned int code_write_count;
|
unsigned int code_write_count;
|
||||||
uint8_t *code_bitmap;
|
unsigned long *code_bitmap;
|
||||||
#if defined(CONFIG_USER_ONLY)
|
#if defined(CONFIG_USER_ONLY)
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
#endif
|
#endif
|
||||||
|
@ -1033,7 +1033,7 @@ void tb_phys_invalidate(struct uc_struct *uc,
|
||||||
tcg_ctx->tb_ctx.tb_phys_invalidate_count++;
|
tcg_ctx->tb_ctx.tb_phys_invalidate_count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void set_bits(uint8_t *tab, int start, int len)
|
static inline void set_bits(unsigned long *tab, int start, int len)
|
||||||
{
|
{
|
||||||
int end, mask, end1;
|
int end, mask, end1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue