1
0
Fork 0
forked from len0rd/rockbox
foxbox/utils/hwstub/stub
Amaury Pouly 9bb6050d40 hwstub: rewrite exception catching
Since we can catch exceptions like data aborts on read/write, it takes very
little to also catch exceptions in calls. When extending this with the catching
of illegal instructions, the call instruction now becomes much more robust and
also for address and instruction probing. Since we can catch several types of
exception, rename set_data_abort_jmp to set_exception_jmp. At the same time,
simplify the logic in read/write request handlers. Also fix a bug in ARM
jump code: it was using
  stmia r1, {..., pc}
as if pc would get current pc + 8 but this is actually implementation defined
on older ARMs (typically pc + 12) and deprecated on newer ARMs, so rewrite the
code avoid that. The set_exception_jmp() function now also reports the exception
type.

Change-Id: Icd0dd52d2456b361b27c4776be09c3d13528ed93
2017-01-24 15:34:19 +01:00
..
asm hwstub: rewrite exception catching 2017-01-24 15:34:19 +01:00
atj213x hwstub: rewrite exception catching 2017-01-24 15:34:19 +01:00
jz4760b hwstub: rewrite exception catching 2017-01-24 15:34:19 +01:00
pp hwstub: make it possible to override toolchain 2015-09-29 22:49:02 +02:00
rk27xx hwstub: make it possible to override toolchain 2015-09-29 22:49:02 +02:00
stmp hwstub: make it possible to override toolchain 2015-09-29 22:49:02 +02:00
config.h hwstub: add jz4760b stub 2017-01-24 15:22:27 +01:00
format.c
format.h
hwstub.make hwstub: add verbose mode to make 2017-01-24 15:31:05 +01:00
logf.c
logf.h
main.c hwstub: rewrite exception catching 2017-01-24 15:34:19 +01:00
memory.h hwstub: fix warning: no newline at end of file with newer gcc 2016-03-14 12:21:42 +01:00
mips-archdefs.h hwstub: rewrite exception catching 2017-01-24 15:34:19 +01:00
mips.h hwstub: rewrite exception catching 2017-01-24 15:34:19 +01:00
protocol.h hwstub: rewrite and expand library 2016-04-08 19:37:30 +02:00
SOURCES hwstub: add jz4760b stub 2017-01-24 15:22:27 +01:00
stddef.h
stdint.h
string.c
string.h
system.h hwstub: rewrite exception catching 2017-01-24 15:34:19 +01:00
target.h hwstub: add the possibility to flush caches before exec 2017-01-24 15:25:14 +01:00
usb_ch9.h
usb_drv.h
usb_drv_arc.c hwstub: add delay functions, and plain binary/sb file generation 2013-09-10 23:19:34 +02:00