s-macke / jor1k

Online OR1K Emulator running Linux
http://jor1k.com
BSD 2-Clause "Simplified" License
1.73k stars 196 forks source link

automatic switching FastCPU vs. SafeCPU? #45

Closed regular closed 9 years ago

regular commented 9 years ago

There are three different CPU implementations. The SMP one I think is not really stable (gets more unstable when the numbers of core increase) Is the FastCPU actually unsafe? i.e. is there a scenario where it fails? (a certain browser environment for example). If so, would it be possible to detect that failure and switch to the safe cpu?

My feeling so far: the FastCPU is stable and safe.

s-macke commented 9 years ago

Yes, the SMP one is not really stable yet. I don't know why, but have some ideas to find the error. The slow CPU is the reference, in which the CPU is implemented like in the specification. I don't care about speed.

The fast CPU is optimized for the code it executes.

So let's say, as long as you don't program anything in assembler or change significant parts in the kernel code, you will never see an error.

I should rename the file, that it is clear, that this is the reference CPU.