Giter VIP home page Giter VIP logo

openrisc / or1k-src Goto Github PK

View Code? Open in Web Editor NEW

This project forked from skristiansson/or1k-src

21.0 21.0 28.0 85.49 MB

OpenRISC 1000 port for sourceware.org's src tree (binutils, gdb, newlib, etc.)

License: GNU General Public License v2.0

C 61.90% Objective-C 0.09% C++ 14.93% Perl 0.14% Emacs Lisp 0.01% Shell 0.75% D 6.60% Assembly 12.47% R 0.21% Scheme 1.76% Eiffel 0.01% Python 0.09% Awk 0.01% TeX 0.18% XSLT 0.01% Tcl 0.77% Ada 0.08% Fortran 0.01% Go 0.01% Java 0.01%

or1k-src's People

Contributors

bluecmd avatar fjullien avatar heshamelmatary avatar jeremybennett avatar pgavin avatar rfajardo avatar skristiansson avatar stffrdhrn avatar wallento avatar

Stargazers

 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  avatar  avatar

or1k-src's Issues

Compile Issue in tc-i386.c

On line 6142, column 31, gcc throws an error complaining about the '!=' comparison in the expression
'&& !op.bitfield.reg64 != 1`
I changed it to '&& ((!op.bitfield.reg64) != 1)' which then make can continue compiling without errors.

Question for or1k timer control

hi,
When I try to use timer related function in or1k-support.h, there are few lines demo which I paste below:
void tick_handler(void) {
// Make schedule decision
// and set new thread
or1k_timer_reset();
// End of exception, new thread will run
}
int main() {
// Configure operating system and start threads..
// Configure timer
or1k_timer_init(50);
or1k_timer_set_handler(&tick_handler);
or1k_timer_set_mode(SPR_TTMR_SR);
or1k_timer_enable();
// Schedule first thread and die..
}

But I can not find define of SPR_TTMR_SR used by or1k_timer_set_mode function.
or1k_timer_set_mode(SPR_TTMR_SR);

I tried to get SPR_TTMR_SR define from a file called spr-defs.h in mor1k-env-dev github
#define SPR_TTMR_SR 0x80000000 /Signle Run/
#define SPR_TTMR_CR 0xC0000000 /Continuous Run/
But it does not work at all.

So where I can get the right define of SPR_TTMR_SR used by or1k-support.h?

Thanks.

Timing error in recent versions.

I found this error two months ago but I couldn't open an issue at that time so I wrote it on opencores.org under the nickname meitoku.

Source: http://opencores.org/forum,OpenRISC,0,5489

"Some programs that use timer works well with toochain versions before April 2014 now behave erratically.
Example: timer.c in https://github.com/juliusbaxter/orconf2013/blob/master/sw/timer/timer.c. It is a led counter, but now with the latest or1k-gcc commit (at that time is 62a1a271e5fecc9fecdfc0961f76fdfddf43d6a7), the timer didn't work, first one led turned on, then all the led flashed immediately. When I switched to commit d2093f8f4d182be22b24b459badd9f555859cc6f of or1k-gcc and commit 7d53ef07ae838a707e2ca8a467e51cd1174cf388 of or1k-src, I got no such problem."

@wallento told me that this error was caused by a modification in or1k-src.

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.