GithubHelp home page GithubHelp logo

Comments (6)

OyinkuroBenafa avatar OyinkuroBenafa commented on July 17, 2024

Hi @bobbirrer ,

Thank you for flagging this up

We are trying to reproduce this issue on our side. Please can you give us more details and examples of the test cases you used for the issues?

Thanks.

from graphical-micro-architecture-simulator.

bobbirrer avatar bobbirrer commented on July 17, 2024

I used the following test code. The program loops infinitely in SUM.

	ADDI	X0, X0, 1
	ADDI	X1, X1, 5
	BL	SUM
END:	B	END
SUM:	ADD	X0, X0, X1
	BR	LR

from graphical-micro-architecture-simulator.

franciscatan-armedu avatar franciscatan-armedu commented on July 17, 2024

Hi @bobbirrer . Thanks, we will be looking into this.
Meanwhile, if you do happen to have an existing bug fix that you would like to contribute to our repository, please see https://github.com/arm-university/Graphical-Micro-Architecture-Simulator/tree/main/Contributions_and_Modifications

from graphical-micro-architecture-simulator.

bobbirrer avatar bobbirrer commented on July 17, 2024

@franciscatan-armedu - Unfortunately I cannot build the tool. However, I think if you switch lines 876 and 877 of /LEGv8_Simulator/src/com/arm/legv8simulator/client/cpu/CPU.java it should resolve the issue.

Change:

	private void BL(int branchIndex) {
		instructionIndex = branchIndex;
		registerFile[LR] = instructionIndex * INSTRUCTION_SIZE + Memory.TEXT_SEGMENT_OFFSET;
		cpuLog.append("BL \t" + "0x" + Long.toHexString(registerFile[LR]) + " \n");
	}

To:

	private void BL(int branchIndex) {
		registerFile[LR] = instructionIndex * INSTRUCTION_SIZE + Memory.TEXT_SEGMENT_OFFSET;
		instructionIndex = branchIndex;
		cpuLog.append("BL \t" + "0x" + Long.toHexString(registerFile[LR]) + " \n");
	} 

from graphical-micro-architecture-simulator.

bobbirrer avatar bobbirrer commented on July 17, 2024

Is there an ETC on when this bug might be fixed?

from graphical-micro-architecture-simulator.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.