<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 6/11/21 12:37 PM, Đức Anh wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAKwnYPWt+rhfgyxMD-bHkF=m_UoO_-VHb1UMtAEzxpTMtS=g2w@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi Sebastian,
        <div><br>
        </div>
        <div>Thank you. I didn't notice that.</div>
        <div><br>
        </div>
        <div>I recompile with SMP enabled, and the application doesn't
          run successfully in the TSIM-LEON3 simulator. Below is the
          error message:</div>
        <div><br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Initializing
          and starting from 0x40000000<br>
           <br>
            CPU 0 in error mode (tt=0x80, trap instruction)<br>
            (In trap table for tt=0x02, illegal instruction)<br>
                70150  40000020  91d02000   ta        0                
                 start + 0x20</blockquote>
        <div><br>
        </div>
        <div>The thing is, the same code will work if I compile with SMP
          disabled. When the SMP is enabled, the simulator will crash
          like above, even with the simple hello world application.</div>
        <div><br>
        </div>
        <div>Have anyone here run into a similar issue? Or do you know
          any other leon3 (or sparc) simulator that I can try?</div>
      </div>
    </blockquote>
    <p><br>
    </p>
    <p>You can try with sis:</p>
    <p>sparc-rtem6-sis -leon3 -m 4 hello.exe</p>
    <p>Should work without problems. For SMP, you need the '-m 4' switch
      to enable 4 cores ...</p>
    <p>Jiri.<br>
    </p>
    <p><br>
    </p>
    <blockquote type="cite"
cite="mid:CAKwnYPWt+rhfgyxMD-bHkF=m_UoO_-VHb1UMtAEzxpTMtS=g2w@mail.gmail.com">
      <div dir="ltr">
        <div><br>
        </div>
        <div>Best regards,</div>
        <div>Duc Anh</div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Wed, 9 Jun 2021 at 18:46,
          Sebastian Huber <<a
            href="mailto:sebastian.huber@embedded-brains.de"
            moz-do-not-send="true">sebastian.huber@embedded-brains.de</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On
          09/06/2021 18:39, Đức Anh wrote:<br>
          > - Is there a way to enable SMP for SPARC/LEON3 in RTEMS
          6?<br>
          <br>
          Just set "RTEMS_SMP = True" in your config.ini:<br>
          <br>
          <a
href="https://docs.rtems.org/branches/master/user/bld/index.html#migration-from-autoconf-automake"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://docs.rtems.org/branches/master/user/bld/index.html#migration-from-autoconf-automake</a><br>
          <br>
          -- <br>
          embedded brains GmbH<br>
          Herr Sebastian HUBER<br>
          Dornierstr. 4<br>
          82178 Puchheim<br>
          Germany<br>
          email: <a href="mailto:sebastian.huber@embedded-brains.de"
            target="_blank" moz-do-not-send="true">sebastian.huber@embedded-brains.de</a><br>
          phone: +49-89-18 94 741 - 16<br>
          fax:   +49-89-18 94 741 - 08<br>
          <br>
          Registergericht: Amtsgericht München<br>
          Registernummer: HRB 157899<br>
          Vertretungsberechtigte Geschäftsführer: Peter Rasmussen,
          Thomas Dörfler<br>
          Unsere Datenschutzerklärung finden Sie hier:<br>
          <a href="https://embedded-brains.de/datenschutzerklaerung/"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://embedded-brains.de/datenschutzerklaerung/</a><br>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:devel@rtems.org">devel@rtems.org</a>
<a class="moz-txt-link-freetext" href="http://lists.rtems.org/mailman/listinfo/devel">http://lists.rtems.org/mailman/listinfo/devel</a></pre>
    </blockquote>
  </body>
</html>