1
0
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:
Paul Mackerras
2019-10-14 14:39:23 +11:00
parent 374f4c536d
commit 9646fe28b0
7 changed files with 37 additions and 27 deletions

View File

@@ -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;