target/i386: Cleanup read_crN, write_crN, lmsw
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 14 May 2021 15:13:31 +0000 (10:13 -0500)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 19 May 2021 17:17:11 +0000 (12:17 -0500)
commit7eff2e7c652304157f503f2d406193bb9de10d58
treed7db935207f2dbb8876548d9883318f2703024ce
parent3d4fce8b8e7f9f8b898b46500d29279e965cb646
target/i386: Cleanup read_crN, write_crN, lmsw

Pull the svm intercept check into the translator.
Pull the entire implementation of lmsw into the translator.
Push the check for CR8LEG into the regno validation switch.
Unify the gen_io_start check between read/write.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210514151342.384376-40-richard.henderson@linaro.org>
target/i386/helper.h
target/i386/tcg/misc_helper.c
target/i386/tcg/sysemu/misc_helper.c
target/i386/tcg/translate.c