Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for riscv64 #3458

Open
edubart opened this issue Apr 20, 2024 · 1 comment
Open

Support for riscv64 #3458

edubart opened this issue Apr 20, 2024 · 1 comment

Comments

@edubart
Copy link

edubart commented Apr 20, 2024

I am working on a fantasy console where its emulator is based on RISC-V architecture. I would like to allow people to use Odin to code games for it, but I noticed there is no support for riscv64 yet.

I saw that there was a PR about this at #743 but it was closed.

So this is a request to support riscv64 at some point in the future.

When trying to build using a RISC-V 64 Docker shell with QEMU emulator, the build fails with:

In file included from src/main.cpp:2:
In file included from src/common.cpp:19:
src/gb/gb.h:144:3: error: Unknown CPU Type
  144 |         #error Unknown CPU Type
      |          ^
src/gb/gb.h:6225:2: error: "gb_rdtsc not supported"
 6225 | #error "gb_rdtsc not supported"
      |  ^
In file included from src/main.cpp:2:
In file included from src/common.cpp:63:
src/threading.cpp:517:2: error: Unknown architecture
  517 | #error Unknown architecture
      |  ^
3 errors generated.
In file included from src/libtommath.cpp:99:
src/libtommath/mp_set_double.c:44:6: warning: "mp_set_double implementation is only available on platforms with IEEE754 floating point format" [-W#warnings]
   44 | #    warning "mp_set_double implementation is only available on platforms with IEEE754 floating point format"
      |      ^
1 warning generated.

@gingerBill
Copy link
Member

If someone wants to support RISCV64, they will have to do it themselves and then make a PR. The other PR was closed for loads of reasons which I don't want to get into right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants