Giter VIP home page Giter VIP logo

ctrx's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ctrx's Issues

Soft-locks when receiving new Kernel/BIOS from debugger.

Oddly, the success rate of booting a kernel through the debugger is somewhat low. Often CTRX will just soft-lock to the point where even removing Cubic Ninja from the game card slot won't cause the 3DS to give an error screen.

Instructions don't execute occasionally.

Test case: current CTRX BIOS performs 3 nops followed by a branch immediately followed by a branch back to 0xBFC00000. After running this loop several times, the branches stop executing and the program counter continues to increase.

Seems to affect all instructions. The instruction never gets decoded. May not even have been fetched or MachineCode in main.cpp is being overwritten at a poor timing.

Coprocessor registers never get updated (mtc0)

mtc0 (and likely related instructions) doesn't write C0 registers and, consequently, can't update exception state.

mtc0 does get decoded and goes through execution properly, but write back is broken.

Optimization: collapse common sets of instructions to one instruction.

Some sets of instructions are very commonly generated by MIPS compilers. These can be optimized to be executed as a single instruction together instead of suffering from the overhead of executing two or more emulated instructions.

Example

lui t0, 0x1FB0
ori t0, t0, 0xF560

These instructions together effectively move a 32-bit immediate into register t0 and can be optimized into a single "move 32-bit immediate" instruction. Since this requires already decoding sets of instructions together, the interpreter requires a mechanism to pool together pre-decoded instructions that can later be executed without re-decoding, speeding up small loops. This also would enable a quick way to discard nops (commonly implemented as sll zero, zero, 0 in most compilers).

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.