Package com.zylin.zpu.simulator.exceptions

Examples of com.zylin.zpu.simulator.exceptions.TraceException


                    e.printStackTrace();
                }
            }
        } catch (IOException e)
        {
            throw new TraceException(e);
        }
       
    }
View Full Code Here


    private long parseInt(String string2) throws TraceException
    {
        String string = string2;
        if (!string.startsWith("0x"))
        {
            throw new TraceException(new Exception("Trace file pasing error line " + getFile().getLineNumber()));
        }
        return Long.parseLong(string.substring(2), 16);
    }
View Full Code Here

    public void instructionEvent() throws GDBServerException
    {
      if (metEnd)
      {
        metEnd=false;
        throw new TraceException();
      }
        if (resync&&trigger)
        {
            if (match())
            {
                /* we have to wait for the first instruction in the trace to be matched */
              System.out.println("First matching instruction found!");
                resync=false;
            }
        }

        if (!resync&&trigger)
        {
         
            boolean m=match();
            recordCurrent();
            current=(current+1)%trace.length;

            if (!m)
            {
                System.err.println("Trace file mismatch");
                dumpTraceBack();
                System.err.print("Expected by Java simulator: \n");
                simulator.printState(this);
                System.err.print("Actual from ModelSim: ");
                System.err.println(line);
                // we now have to ignore this match.
                ignore=true;
                throw new TraceException();
            }
        } else
        {
            recordCurrent();
            current=(current+1)%trace.length;
View Full Code Here

TOP

Related Classes of com.zylin.zpu.simulator.exceptions.TraceException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.