[J-core] Sega saturn retrocomputing.

Christopher Friedt chrisfriedt at gmail.com
Tue Jul 19 17:00:50 EDT 2016


On Jul 19, 2016 4:44 PM, "Rob Landley" <rob at landley.net> wrote:
>
>
>
> On 07/19/2016 08:55 AM, Christopher Friedt wrote:
> > On Jul 18, 2016 11:51 PM, "Rob Landley" <rob at landley.net
> > <mailto:rob at landley.net>> wrote:
> >>
> >> FYI:
> >>
> >> http://hackaday.com/2016/07/11/cracking-the-sega-saturn-after-20-years/
> >
> > I think I sent a link on the ML to the YouTube video about a week ago.
> >
> >> (Alas, when we looked at possibly doing an FPGA saturn clone with J2 as
> >> a side project for the 20th anniversary, it turned out there were some
> >> tight timing constraints that make games misbehave very easily, at
least
> >> in software emulation. I think some j2 instructions take different
> >> numbers of clock cycles than sh2 did? Don't remember the details, but
we
> >> shelved the idea...)
> >
> > I'm still interested in doing some Qemu work. Currently the SH core
> > (even before J2 additions) is not cycle-accurate, which is a bit of a
> > critical error made by the initial Qemu SH port.
>
> No, qemu is never cycle accurate for anything it emulates. It's a
> dynamic code translator, not a cycle accurate simulator. (Cycle accurate
> simulators are 1/100th the speed of qemu. At a design level you can only
> ever get cycle accuracy by slowing DOWN from the fastest you can do, and
> caring about that level at all opens a can of worms of complexity that
> costs you an order of magnitude of speed before that's even an issue in
> the first place.)

I'm well aware of how Qemu operates and described it (correctly) as a
binary translator in my previous response.

The pipeline for each CPU can, should and is (for most other arches),
designed to be cycle accurate (using temporary registers). The Qemu SH port
does not currently use temporary registers to accurately describe the
pipeline. Hence the failed tests (I made a number of very accurate posts to
the mailing list about this some time ago).

Also, Fabrice was not the original SH author, IIRC. He would have done a
better job :-)

Cheers,

C
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.j-core.org/pipermail/j-core/attachments/20160719/4462136b/attachment.html>


More information about the J-core mailing list