Sparc: avoid AREG0 for division op helpers
authorBlue Swirl <blauwirbel@gmail.com>
Mon, 4 Jul 2011 18:15:42 +0000 (18:15 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Wed, 26 Oct 2011 17:18:52 +0000 (17:18 +0000)
commit7a5e4488cd1d0e80500be4781010ac4873a9585b
tree07c16246818715be34b696320469c7136c9ebf5f
parent7922703623a989b59ce7f7b57a3c8ebe5c0f6b53
Sparc: avoid AREG0 for division op helpers

Make [su]div{,cc} helpers take a parameter for CPUState instead
of relying on global env. Move the functions to helper.c.

Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-sparc/helper.c
target-sparc/helper.h
target-sparc/op_helper.c
target-sparc/translate.c