<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/18/19 10:30 PM, Jiri Gaisler
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:0283b9ae-3e69-0f86-009b-f90692ca411b@gaisler.se">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<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 </p>
</blockquote>
<p>OK, the problem was that qemu did not implement byte access to
the plug&play. With the attached patch, most tests for leon3
run:</p>
<p>Passed: 506<br>
Failed: 4<br>
User Input: 6<br>
Expected Fail: 0<br>
Indeterminate: 0<br>
Benchmark: 3<br>
Timeout: 9<br>
Invalid: 2<br>
Wrong Version: 0<br>
Wrong Build: 0<br>
Wrong Tools: 0<br>
------------------<br>
Total: 530<br>
Average test time: 0:00:00.539755<br>
Testing time : 0:04:46.070129<br>
<br>
</p>
<p>Maybe we can add it to RSB as qemu4.1, which was released this
week. It could make it easier to test other targets ...?</p>
<p>Jiri.<br>
</p>
</body>
</html>