2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-30 08:04:13 +08:00
linux-next/arch/s390
Heiko Carstens 8bc1e4ec79 s390/disassembler: generate opcode tables from text file
The current way of adding new instructions to the opcode tables is
painful and error prone. Therefore add, similar to binutils, a text
file which contains all opcodes and the corresponding mnemonics and
instruction formats.

A small gen_opcode_table tool then generates a header file with the
required enums and opcode table initializers at the prepare step of
the kernel build.

This way only a simple text file has to be maintained, which can be
rather easily extended.

Unlike before where there were plenty of opcode tables and a large
switch statement to find the correct opcode table, there is now only
one opcode table left which contains all instructions. A second opcode
offset table now contains offsets within the opcode table to find
instructions which have the same opcode prefix. In order to save space
all 1-byte opcode instructions are grouped together at the end of the
opcode table. This is also quite similar to like it was before.

In addition also move and change code and definitions within the
disassembler. As a side effect this reduces the size required for the
code and opcode tables by ~1.5k.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
2017-11-08 22:11:02 +01:00
..
appldata sched/headers: Move task statistics APIs from <linux/sched.h> to <linux/sched/stat.h> 2017-03-03 01:43:43 +01:00
boot s390/decompressor: remove informational messages 2017-10-26 16:44:59 +02:00
configs s390: update defconfig 2017-10-16 08:19:28 +02:00
crypto s390/crypto: add s390 platform specific aes gcm support. 2017-09-29 15:51:25 +02:00
hypfs s390: hypfs: make inode explicitly non-modular 2016-10-31 17:55:40 +01:00
include s390/disassembler: generate opcode tables from text file 2017-11-08 22:11:02 +01:00
kernel s390/disassembler: generate opcode tables from text file 2017-11-08 22:11:02 +01:00
kvm s390/ctl_reg: move control register definitions to ctl_reg.h 2017-10-19 17:07:37 +02:00
lib s390/spinlock: use cpu alternatives to enable niai instruction 2017-10-18 14:11:33 +02:00
mm s390: remove named saved segment support 2017-11-08 09:47:54 +01:00
net bpf, s390x: implement jiting of BPF_J{LT, LE, SLT, SLE} 2017-08-09 16:53:57 -07:00
numa s390/numa: pin all possible cpus to nodes early 2016-12-07 07:23:33 +01:00
oprofile s390/dumpstack: restore reliable indicator for call traces 2016-10-17 14:44:30 +02:00
pci s390/pci: do not require AIS facility 2017-11-08 09:47:39 +01:00
tools s390/disassembler: generate opcode tables from text file 2017-11-08 22:11:02 +01:00
defconfig s390: update defconfig 2017-10-16 08:19:28 +02:00
Kbuild s390/crypto: Provide s390 specific arch random functionality. 2017-04-26 13:41:35 +02:00
Kconfig s390: remove named saved segment support 2017-11-08 09:47:54 +01:00
Kconfig.debug Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux 2017-02-22 10:20:04 -08:00
Makefile s390/disassembler: generate opcode tables from text file 2017-11-08 22:11:02 +01:00