On 6 May 2016 at 12:57, Laurent Vivier <laur...@vivier.eu> wrote: > Le 06/05/2016 à 13:45, Alexander Graf a écrit : >> Awesome, do you think you could port risu to 68k? >> >> https://git.linaro.org/people/peter.maydell/risu.git/ >> >> I was amazed by the quality the aarch64 emulation received once it was >> properly testable. > > I've already had a look at risu for that. > > But risu uses a perl scripts to generate the instruction from the .risu > file, and it is very ARM specific (and I don't like perl :) )
Yeah, the risugen script is the most awkward part for porting to a new architecture. It needs restructuring to make it properly architecture-independent (with a subclass per architecture, and some kind of architecture specification directive in the input file.) This is one of those awkward step-points where the first person to need to add a different architecture has the pain of doing the restructuring but then everybody else gets a much easier job later. The rest of risu (the C code) is much better factored out to allow new architectures to be slotted in. thanks -- PMM