> On 14 Jan 2020, at 08:25, Benjamin Herrenschmidt <b...@kernel.crashing.org> > wrote: > > I noticed that the bulk of arm-semi.c (or riscv-semi.c) is trivially > made completely generic by doing a couple of changes: Last year I did a similar exercise in OpenOCD, where I took the Arm semihosting code from the Arm specific location, extracted the common part, updated it for latest Arm 64-bit specs, and then used the common code for both Arm and RISC-V. If you think useful, you might take a look there too. Regards, Liviu
- Semihosting, arm, riscv, ppc and common code Benjamin Herrenschmidt
- Re: Semihosting, arm, riscv, ppc and common co... Liviu Ionescu
- Re: Semihosting, arm, riscv, ppc and commo... Benjamin Herrenschmidt
- Re: Semihosting, arm, riscv, ppc and c... Alex Bennée
- Re: Semihosting, arm, riscv, ppc a... Benjamin Herrenschmidt
- Re: Semihosting, arm, riscv, ... Alex Bennée
- Re: Semihosting, arm, ris... Liviu Ionescu
- Re: Semihosting, arm, ris... Richard Henderson
- Re: Semihosting, arm,... Liviu Ionescu
- Re: Semihosting, arm,... Benjamin Herrenschmidt
- Re: Semihosting, arm,... Liviu Ionescu
- Re: Semihosting, arm, ris... Benjamin Herrenschmidt