arm64: armv8_deprecated: fold ops into insn_emulation
authorMark Rutland <mark.rutland@arm.com>
Wed, 19 Oct 2022 14:41:20 +0000 (15:41 +0100)
committerWill Deacon <will@kernel.org>
Tue, 15 Nov 2022 13:46:18 +0000 (13:46 +0000)
commitb4453cc8a7ebbd45436a8cd3ffeaa069ceac146f
treea63300470b76648b463d91ddaf55612c5fb630a6
parentf5962add74b61f8ae31c6311f75ca35d7e1d2d8f
arm64: armv8_deprecated: fold ops into insn_emulation

The code for emulating deprecated instructions has two related
structures: struct insn_emulation_ops and struct insn_emulation, where
each struct insn_emulation_ops is associated 1-1 with a struct
insn_emulation.

It would be simpler to combine the two into a single structure, removing
the need for (unconditional) dynamic allocation at boot time, and
simplifying some runtime pointer chasing.

This patch merges the two structures together.

There should be no functional change as a result of this patch.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: James Morse <james.morse@arm.com>
Cc: Joey Gouly <joey.gouly@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20221019144123.612388-7-mark.rutland@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/armv8_deprecated.c