Git Product home page Git Product logo

open-socemu's People

Contributors

louiscaron avatar

Watchers

 avatar

Forkers

timatxia

open-socemu's Issues

LDMIA instruction issues when using one of target registers as base address register

What steps will reproduce the problem?
1. Try an ELF image that has somewhere an instruction of type:
         LDMIA r5!,{r3-r5}
2. Run the simulation while printing the r5 values or used a debugger
3. Monitor r5 values before and after this instruction

What is the expected output? What do you see instead?

Here the final value of register r5 is the incremented address and not loaded 
value. Per ARM guidelines, it should be loaded value:
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0068b/BABEFCIB.ht
ml

What version of the product are you using? On what operating system?
Current version of ARM ISS.

Please provide any additional information below.
I patched the problem with following fix and it seems to work well for me:

File armemu.cpp

void
arm::LoadMult(uint32_t instr, uint32_t address, uint32_t WBBase)
{

..
..
    if (m_Aborted) {
        if (BIT (21) && LHSReg != 15) {
            if (!(m_AbortSig))
            {
            }
        }
        TAKEABORT;
    }
    //Dont change the base address register if it is target as well
    //Vikas Paliwal ([email protected])
    //else if (BIT (21) && LHSReg != 15 ) {
    else if (BIT (21) && LHSReg != 15 && !BIT(LHSReg)) {
            LSBase = WBBase;
    }
    /* chy 2005-11-24, over */

}

It would be helpful if you could confirm if this is indeed an issue.

Regards,
Vikas

Original issue reported on code.google.com by [email protected] on 7 Sep 2011 at 8:44

Attachments:

Build the project as a library

Make the project build as a library that could be linked with a new platform 
development environment.  Then it is also necessary to move the existing 
platforms as example separate projects

Original issue reported on code.google.com by [email protected] on 15 Nov 2010 at 3:31

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.