mirror of
https://github.com/antonblanchard/microwatt.git
synced 2026-05-05 07:44:16 +00:00
Do sign-extension instructions in writeback instead of execute1
This makes the exts[bhw] instructions do the sign extension in the writeback stage using the sign-extension logic there instead of having unique sign extension logic in execute1. This requires passing the data length and sign extend flag from decode2 down through execute1 and execute2 and into writeback. As a side bonus we reduce the number of values in insn_type_t by two. Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
This commit is contained in:
@@ -40,6 +40,8 @@ begin
|
||||
v.write_cr_mask := e_in.write_cr_mask;
|
||||
v.write_cr_data := e_in.write_cr_data;
|
||||
v.rc := e_in.rc;
|
||||
v.write_len := e_in.write_len;
|
||||
v.sign_extend := e_in.sign_extend;
|
||||
|
||||
-- Update registers
|
||||
rin <= v;
|
||||
|
||||
Reference in New Issue
Block a user