diff options
| author | rin <rin@NetBSD.org> | 2021-09-18 06:31:46 +0000 |
|---|---|---|
| committer | rin <rin@NetBSD.org> | 2021-09-18 06:31:46 +0000 |
| commit | 63d0b6338f7bffaeadbc9d918b33b18f448d99f7 (patch) | |
| tree | 28589116f21b6e2650255718e034948375adcd8e /sys/dev/microcode/run | |
| parent | 0cea7c3aa9db057e7ded5aad50ad1391872e10dc (diff) | |
cksum128mod: Prepare jump address by 'mova', instead of 'mov.l'.
Since both this 'mova' and 'and #imm' above must be used against r0,
we need extra 'mov r0, r3'. However, this should still be good both for
sh3 and sh4:
- For sh3, 'mov.l' at odd half-word address is removed; pipeline hazard
due to instruction fetch is resolved.
- For sh4, data cache line is no longer assigned for this 'mov.l'.
Also:
- Upcoming __PIC__ support (in order to avoid text relocations when built
in tests/net/in_cksum) becomes simpler; no need CALL_DATUM_LOCAL() for
cksum128_tail.
- Shave off 4 bytes from text.
No regression is observed for sh3 (hpcsh) and sh4 (landisk).
Diffstat (limited to 'sys/dev/microcode/run')
0 files changed, 0 insertions, 0 deletions
