Zi Shen Lim c94ae4f7c5 arm64: insn: remove BUG_ON from codegen
During code generation, we used to BUG_ON unknown/unsupported encoding
or invalid parameters.

Instead, now we report these as errors and simply return the
instruction AARCH64_BREAK_FAULT. Users of these codegen helpers should
check for and handle this failure condition as appropriate.

Otherwise, unhandled codegen failure will result in trapping at
run-time due to AARCH64_BREAK_FAULT, which is arguably better than a
BUG_ON.

Signed-off-by: Zi Shen Lim <zlim.lnx@gmail.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-01-17 19:15:26 -05:00
..
2015-11-12 15:18:07 +00:00
2012-09-17 13:42:21 +01:00
2016-01-06 16:00:56 +00:00
2016-01-17 19:15:26 -05:00
2016-01-12 13:05:36 -08:00
2015-11-04 14:47:13 -08:00
2015-04-13 20:40:10 +02:00
2015-01-27 09:38:08 +00:00
2016-01-12 12:23:33 -08:00