<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 8/17/19 8:23 PM, Joel Sherrill
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAF9ehCWoAuNWARoT=Bp61a12Wk04W__cefJMhAG60GQJOar8GA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="auto">
        <div><br>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">On Sat, Aug 17, 2019, 1:07
              PM Jiri Gaisler <<a href="mailto:jiri@gaisler.se"
                moz-do-not-send="true">jiri@gaisler.se</a>> wrote:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div text="#000000" bgcolor="#FFFFFF">
                <p><br>
                </p>
                <div class="m_-7707028718729648908moz-cite-prefix">On
                  8/16/19 11:03 PM, Juan Rafael García Blanco wrote:<br>
                </div>
                <blockquote type="cite">
                  <div dir="auto">
                    <div>Hi,</div>
                    <div dir="auto"><br>
                    </div>
                    <div dir="auto">AFAIK, the last qemu major version
                      includes support for leon3. But I dont't know if
                      that work was based on these patches.</div>
                  </div>
                </blockquote>
                <p>Indeed. Qemu git head now includes leon3
                  plug&play and should be able to run RTEMS images
                  unpatched. Is there a reason why the qemu version
                  built by RSB is from June 2015 ..?<br>
                </p>
              </div>
            </blockquote>
          </div>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Sadly no one has updated it. Beyond Leon, Zynq
          and PC, what should be tested?</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Riscv status in head?</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Beagle?</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Any other bsps we use with Qemu?</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">I'd love to see it updated. It's a pain to test
          across all the hosts and get working.</div>
      </div>
    </blockquote>
    <p><br>
    </p>
    <p>Unfortunately, qemu HEAD cannot execute RTEMS leon3 images
      unpatched. The startup code needs a (simple) tweak, and the
      implementation of the plug&play is not quite correct. An RTEMS
      binary fails to detect the interrupt controller and subsequently
      terminates. I have spent a few hours on it but the bug is rather
      elusive and I am not sure I will be able to track it down.
      Debugging low-level target code on qemu is not exactly user
      friendly  :-) ...<br>
    </p>
    <p><br>
    </p>
    <blockquote type="cite"
cite="mid:CAF9ehCWoAuNWARoT=Bp61a12Wk04W__cefJMhAG60GQJOar8GA@mail.gmail.com">
      <div dir="auto">
        <div dir="auto"><br>
        </div>
        <div dir="auto">
          <div class="gmail_quote">
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div text="#000000" bgcolor="#FFFFFF">
                <p> </p>
                <p>Jiri.<br>
                </p>
                <blockquote type="cite">
                  <div dir="auto">
                    <div dir="auto"><br>
                    </div>
                    <div dir="auto">Regards,</div>
                    <div dir="auto">Juan.<br>
                      <br>
                      <div class="gmail_quote" dir="auto">
                        <div dir="ltr" class="gmail_attr">On Fri, Aug
                          16, 2019, 11:00 PM Jiri Gaisler <<a
                            href="mailto:jiri@gaisler.se"
                            target="_blank" rel="noreferrer"
                            moz-do-not-send="true">jiri@gaisler.se</a>>
                          wrote:<br>
                        </div>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex"><br>
                          On 8/15/19 12:09 AM, Joel Sherrill wrote:<br>
                          > On Wed, Aug 14, 2019 at 4:42 PM Chris
                          Johns <<a href="mailto:chrisj@rtems.org"
                            rel="noreferrer noreferrer" target="_blank"
                            moz-do-not-send="true">chrisj@rtems.org</a>>
                          wrote:<br>
                          >> On 15/8/19 12:46 am, Joel Sherrill
                          wrote:<br>
                          >>> Qemu isn't building due to a
                          checksum error.<br>
                          >>><br>
                          >>> These patches are at <a
                            href="http://gaisler.org" rel="noreferrer
                            noreferrer noreferrer" target="_blank"
                            moz-do-not-send="true">gaisler.org</a>. I
                          don't know where to move them but<br>
                          >>> eventually they should be moved.<br>
                          >> You can post them to qemu's
                          patchworks and then get them from there. The
                          RSB<br>
                          >> supports fetching from patchworks.<br>
                          > Jiri: Are these already on patchworks by
                          any chance?<br>
                          <br>
                          Not that I am aware of. The checksum probably
                          changed because the original patches were lost
                          during a server rehost, and I recovered some
                          earlier version from a backup disk. The
                          patches do not apply cleanly to the latest
                          version of qemu:<br>
                          <br>
                          + /bin/cat
/home/jiri/ibm/src/rtems/rtems-source-builder/bare/patches/0001-LEON3-Add-emulation-of-AMBA-plug-play.patch<br>
                          + /usr/bin/patch -p1<br>
                          patching file hw/sparc/Makefile.objs<br>
                          patching file hw/sparc/grlib_ambapnp.c<br>
                          patching file hw/sparc/leon3.c<br>
                          Hunk #1 succeeded at 207 (offset -7 lines).<br>
                          patching file include/hw/sparc/grlib.h<br>
                          Hunk #1 FAILED at 117.<br>
                          1 out of 1 hunk FAILED -- saving rejects to
                          file include/hw/sparc/grlib.h.rej<br>
                          <br>
                          Could be that qemu has moved since the patches
                          were make, I will try to take a look ...<br>
                          <br>
                          Jiri.<br>
                          <br>
                          <br>
                          <br>
_______________________________________________<br>
                          devel mailing list<br>
                          <a href="mailto:devel@rtems.org"
                            rel="noreferrer noreferrer" target="_blank"
                            moz-do-not-send="true">devel@rtems.org</a><br>
                          <a
                            href="http://lists.rtems.org/mailman/listinfo/devel"
                            rel="noreferrer noreferrer noreferrer"
                            target="_blank" moz-do-not-send="true">http://lists.rtems.org/mailman/listinfo/devel</a><br>
                        </blockquote>
                      </div>
                    </div>
                  </div>
                </blockquote>
              </div>
            </blockquote>
          </div>
        </div>
      </div>
    </blockquote>
  </body>
</html>