mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
sh: Add register alignment helpers for shared flushers.
This plugs in some register alignment helpers for the shared flushers, allowing them to also be used on SH-5. The main rationale here is that in the SH-5 case we have a variable ABI, where the pointer size may not equal the register width. This register extension is taken care of by the SH-5 code already today, and is otherwise unused on the SH-4 code. This combines the two and allows us to kill off the SH-5 implementation. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
0837f52463
commit
43bc61d86f
4 changed files with 24 additions and 9 deletions
|
@ -198,6 +198,11 @@ do { \
|
|||
})
|
||||
#endif
|
||||
|
||||
static inline reg_size_t register_align(void *val)
|
||||
{
|
||||
return (unsigned long)(signed long)val;
|
||||
}
|
||||
|
||||
int handle_unaligned_access(insn_size_t instruction, struct pt_regs *regs,
|
||||
struct mem_access *ma);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue