> compile NEMU

ysyx_22040000 李心杨
Linux calcite 6.6.19 #1-NixOS SMP PREEMPT_DYNAMIC Fri Mar  1 12:35:11 UTC 2024 x86_64 GNU/Linux
 16:10:10  up   3:16,  2 users,  load average: 0.30, 0.27, 0.30
This commit is contained in:
tracer-ysyx 2024-03-20 16:10:10 +08:00 committed by xinyangli
parent bcc8fc731d
commit 417952199a

View file

@ -19,7 +19,7 @@ static int cmp_func_t(const void *a, const void *b) {
func_t *get_func(vaddr_t addr) {
int l = 0, r = func_table_len - 1;
while(l <= r) {
int mid = l + (r - l) / 2;
int mid = (l + r) / 2;
if(func_table[mid].start <= addr) l = mid + 1;
else r = mid - 1;
}