OSDN Git Service

target/openrisc: Cache constant 0 in DisasContext
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 8 Jul 2021 21:15:56 +0000 (14:15 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 13 Jul 2021 15:13:19 +0000 (08:13 -0700)
commit118671f02faf4d67f283731eafc96bb72b125431
treec53fdb1a651f705f633289503c2147cd1e3738f6
parent4d10fa0ff901b055ca75f6986974609bc99820dd
target/openrisc: Cache constant 0 in DisasContext

We are virtually certain to have fetched constant 0 once, at the
beginning of the TB, so we might as well use it elsewhere.

Reviewed-by: Stafford Horne <shorne@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/openrisc/translate.c