From 72cc3881048edcb70912318ea9574baa4c7bf902 Mon Sep 17 00:00:00 2001 From: bellard Date: Sat, 10 May 2003 21:38:19 +0000 Subject: fixed SHL C flag computation git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@151 c046a42c-6fe2-441c-8c8c-71466251a162 --- ops_template.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ops_template.h') diff --git a/ops_template.h b/ops_template.h index 4cada782c2..7adf7be6a7 100644 --- a/ops_template.h +++ b/ops_template.h @@ -204,8 +204,13 @@ static int glue(compute_all_shl, SUFFIX)(void) return cf | pf | af | zf | sf | of; } -#if DATA_BITS == 32 static int glue(compute_c_shl, SUFFIX)(void) +{ + return (CC_SRC >> (DATA_BITS - 1)) & CC_C; +} + +#if DATA_BITS == 32 +static int glue(compute_c_sar, SUFFIX)(void) { return CC_SRC & 1; } -- cgit v1.2.3