From 8a53754b97182e7f3c0d5a1b66bc1e4902f6ce2e Mon Sep 17 00:00:00 2001 From: plant Date: Mon, 17 Oct 2022 19:28:46 -0600 Subject: [PATCH] fix 95/98FE on P6 loop should decode into 4 alu ops instead of 1 --- src/cpu/codegen_timing_p6.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/cpu/codegen_timing_p6.c b/src/cpu/codegen_timing_p6.c index 0fb5359fe..00f5bfb24 100644 --- a/src/cpu/codegen_timing_p6.c +++ b/src/cpu/codegen_timing_p6.c @@ -158,10 +158,13 @@ static const macro_op_t lods_op = }; static const macro_op_t loop_op = { - .nr_uops = 2, + .nr_uops = 5, .decode_type = DECODE_COMPLEX, .uop[0] = {.type = UOP_ALU, .latency = 1}, - .uop[1] = {.type = UOP_BRANCH, .latency = 2} + .uop[1] = {.type = UOP_ALU, .latency = 1}, + .uop[2] = {.type = UOP_ALU, .latency = 1}, + .uop[3] = {.type = UOP_ALU, .latency = 1}, + .uop[4] = {.type = UOP_BRANCH, .latency = 1} }; static const macro_op_t mov_reg_seg_op = {