From 9b5ed199e364fb84165a2616434849f63226b8d0 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Tue, 18 Feb 2014 20:32:10 -0800 Subject: Generate get_sr, set_sr and set_ccr at runtime so they can respect the flag_regs setting --- runtime.S | 51 --------------------------------------------------- 1 file changed, 51 deletions(-) (limited to 'runtime.S') diff --git a/runtime.S b/runtime.S index ded2c2e..e66b158 100644 --- a/runtime.S +++ b/runtime.S @@ -70,56 +70,5 @@ no_adjust_hs: mov %rdi, %rax ret - .global get_sr -get_sr: - mov 5(%rsi), %cl - shl $8, %cx - mov (%rsi), %cl - shl $1, %cl - or %bl, %cl - shl $1, %cl - or %dl, %cl - shl $1, %cl - or %bh, %cl - shl $1, %cl - or %dh, %cl - ret - - .global set_sr -set_sr: - mov %cl, %dh - and $1, %dh - shr $1, %cl - mov %cl, %bh - and $1, %bh - shr $1, %cl - mov %cl, %dl - and $1, %dl - shr $1, %cl - mov %cl, %bl - and $1, %bl - shr $1, %cl - and $1, %cl - mov %cl, (%rsi) - shr $8, %cx - mov %cl, 5(%rsi) - ret - .global set_ccr -set_ccr: - mov %cl, %dh - and $1, %dh - shr $1, %cl - mov %cl, %bh - and $1, %bh - shr $1, %cl - mov %cl, %dl - and $1, %dl - shr $1, %cl - mov %cl, %bl - and $1, %bl - shr $1, %cl - and $1, %cl - mov %cl, (%rsi) - ret -- cgit v1.2.3