<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Daniel,<br>
      <br>
      In this case we are not using lnt under Qemu user mode for
      benchmarking; just as a way to run test-suite to test whether the
      code is correct.<br>
      <br>
      Qemu user mode emulates target instructions, but when it gets a
      Unix Kernel trap, it uses the host to emulate those.<br>
      <br>
      For example, file I/O.<br>
      <br>
      It is possible to run target timeit under qemu and let it launch
      the app or a wrapper.<br>
      (But it is more limited as to what can be done here under qemu vs
      under the host OS directly).<br>
      <br>
      For time functions, it is also going to use the host to emulate
      those.<br>
      <br>
      So whether timeit is running under qemu or directly on the host,
      the answers regarding time will be the same.<br>
      <br>
      But running timeit under qemu will be much slower as far as
      elapsed time than running it on the host directly.<br>
      <br>
      We would also need to add some new mechanism to Lnt or the
      makefiles to also wrap timeit.<br>
      <br>
      Reed<br>
      <br>
      <br>
      On 07/23/2013 02:19 PM, Daniel Dunbar wrote:<br>
    </div>
    <blockquote
cite="mid:CAEU8z69qbKMiGytMcFkrOkMQYkRW2e8NwmSMrMzVm_iNtBr5=A@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div dir="ltr">Wouldn't it be a more accurate simulation to run
        timeit-target under the emulator as well? Or is that too much to
        ask?
        <div><br>
        </div>
        <div> - Daniel</div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">
          On Mon, Jul 22, 2013 at 6:47 PM, Reed Kotler <span dir="ltr"><<a
              moz-do-not-send="true" href="mailto:rkotler@mips.com"
              target="_blank">rkotler@mips.com</a>></span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <br>
            <br>
            Just to clarify:<br>
            <br>
            this is when tests are run under USER mode qemu.
            <div>
              <div class="h5"><br>
                <br>
                On 07/22/2013 04:09 PM, Doug Gilmore wrote:<br>
              </div>
            </div>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div>
                <div class="h5">
                  I attached a patch to lnt that addresses this issue.<br>
                  <br>
                  The patch adds the --host-compile-tools option, which
                  when specified,<br>
                  forces compilation of the tools for execution on the
                  host.<br>
                  <br>
                  This allows lnt to be used for correctness testing
                  when the tests<br>
                  are run under QEMU.<br>
                  <br>
                  Comments?<br>
                  <br>
                  Doug<br>
                  <br>
                  <br>
                  <br>
                  <br>
                  <br>
                </div>
              </div>
              _______________________________________________<br>
              llvm-commits mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:llvm-commits-Tmj1lob9twqVc3sceRu5cw@public.gmane.org"
                target="_blank">llvm-commits-Tmj1lob9twqVc3sceRu5cw@public.gmane.org</a><br>
              <a moz-do-not-send="true"
                href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits"
                target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
              <br>
            </blockquote>
            <br>
            <br>
            <br>
            _______________________________________________<br>
            llvm-commits mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">llvm-commits@cs.uiuc.edu</a><br>
            <a moz-do-not-send="true"
              href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits"
              target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>