Giter Club home page Giter Club logo

arm-cpu-core's People

Watchers

 avatar

arm-cpu-core's Issues

STM stores old value of register loaded from memory by previous operation

What steps will reproduce the problem?
1. write small program which contains next instructions in specified order:
    MOV r0,#0xa50000
    LDR r0,=0x123456
    STM r1,{r0,r2}
2. compile
3. run

What is the expected output? What do you see instead?
Expected output is writing value 0x123456 and then value of R2 to memory 
starting from R1. But actual result is write of 0xa50000 and then value of R2.

Original issue reported on code.google.com by [email protected] on 6 Oct 2014 at 9:37

IRQ and FIQ aborts ldm/stm instructions while execution

What steps will reproduce the problem?
1. create small program with vector table, primitive FIQ/IRQ handlers (subs 
pc,lr,#4) and ldr r3,=label;ldm r3,{r3,r4} in main(), compile and execute in 
simulator.
2. generate one clock IRQ or FIQ when cpu executes ldm instruction (at same 
time as ram_cen raises)
3. step until CPU returns from exception handler.

What is the expected output? What do you see instead?
CPU should finish LDM instruction, branch to handler and return to next 
instruction after LDM. But LDM is interrupted in middle of his job (it loads 
only first register then ram_cen lowered and second keeps unchanged), handler 
returns to LDM instruction and tries to execute it again. But base register is 
corrupted. So execution repeat does wrong result or may cause data abort.

What version of the product are you using? On what operating system?
CPU is taken from linux.rar package.

Please provide any additional information below.

I think it can be fixed by ANDing rom_en and fiq/irq signals.

Original issue reported on code.google.com by [email protected] on 23 Apr 2014 at 1:47

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.