Giter Club home page Giter Club logo

Comments (3)

peteasa avatar peteasa commented on August 17, 2024

Ok so drilling down a bit into this. the tests try to map memory for status and results and this api call is failing.. I am guessing that the changes to the kernel make p_map unsupported on Epiphany so I am now looking for an alternative way to map memory with something like e_shm_alloc() perhaps the pal equivalent has not yet been implemented?

from pal.

olajep avatar olajep commented on August 17, 2024

reg_write(core, i << 2, MMR_R0 + (i << 2));

Thank you, don't know what I was thinking there, I think it should be this though ?

reg_write(core, MMR_R0, (i << 2));

right now the posix host --> epiphany device code only works with the simulator
I'll fix the native device code as soon as I can but it won't be for another week or two.
Patches always welcome of course ;)

If you want to hack on it you'll likely find all bugs in src/base/devices/posix/epiphany/device.c

It might be enough to fix dev_map(), dev_map_raw(), and provide a mem_ops structure,
see simulator.c for how it's implemented there.

Cheers,
Ola

from pal.

peteasa avatar peteasa commented on August 17, 2024

@olajep I have created a pull request to fix this and make my version of the epiphany test work. I will do a bit more later and modify runtest.epiphany.c. My test version worked with this code and got a response from the epiphany core so I think that the changes are good.

from pal.

Related Issues (20)

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.