From a97f9082810636fd9a511a0955b73d97afee10f8 Mon Sep 17 00:00:00 2001 From: danghvu Date: Tue, 27 Dec 2016 23:28:47 -0600 Subject: [PATCH] Revert "translate-all.c: make code_bitmap 64-bit, fix issue #646" This reverts commit 1a222e8904d8b7737479a96e754a33b45a348d68. This issue shall be fixed when sync with upstream. --- qemu/translate-all.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qemu/translate-all.c b/qemu/translate-all.c index 90fcc89b..4f10c633 100644 --- a/qemu/translate-all.c +++ b/qemu/translate-all.c @@ -81,7 +81,7 @@ typedef struct PageDesc { /* in order to optimize self modifying code, we count the number of lookups we do to a given page to use a bitmap */ unsigned int code_write_count; - unsigned long *code_bitmap; + uint8_t *code_bitmap; #if defined(CONFIG_USER_ONLY) unsigned long flags; #endif @@ -1033,7 +1033,7 @@ void tb_phys_invalidate(struct uc_struct *uc, tcg_ctx->tb_ctx.tb_phys_invalidate_count++; } -static inline void set_bits(unsigned long *tab, int start, int len) +static inline void set_bits(uint8_t *tab, int start, int len) { int end, mask, end1;