From 73f0f3cb7c74293e92b99e372fbd7684ce784ff3 Mon Sep 17 00:00:00 2001 From: Fabian Date: Fri, 13 Jul 2018 16:22:32 -0600 Subject: [PATCH] Make jit_block_boundary a boolean --- src/native/cpu.c | 2 +- src/native/cpu.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/native/cpu.c b/src/native/cpu.c index 237f75b9..81980834 100644 --- a/src/native/cpu.c +++ b/src/native/cpu.c @@ -23,7 +23,7 @@ bool must_not_fault = false; uint64_t tsc_offset = 0; -uint32_t jit_block_boundary = 0; +bool jit_block_boundary = false; int32_t valid_tlb_entries[VALID_TLB_ENTRY_MAX] = {0}; int32_t valid_tlb_entries_count = 0; diff --git a/src/native/cpu.h b/src/native/cpu.h index 53660202..f696889d 100644 --- a/src/native/cpu.h +++ b/src/native/cpu.h @@ -37,7 +37,7 @@ typedef uint8_t cached_state_flags; // Flag indicating whether the instruction that just ran was at a block's boundary (jump, // state-altering, etc.) -extern uint32_t jit_block_boundary; +extern bool jit_block_boundary; #define VALID_TLB_ENTRY_MAX 10000 int32_t valid_tlb_entries[VALID_TLB_ENTRY_MAX];