Roughly half is moderately serious, half is pointless pedantry about things that don't matter or complaints about good choices.
-
-
Atomics being optional is absolutely wrong. Non-SMP core can implement lr/sc trivially and should be required to. Likewise for mul but not quite as serious since it *can* be emulated in sw.
3 replies 0 retweets 1 like -
Replying to @RichFelker @pcwalton
I disagree. Platform specs require A where it makes sense (such as Linux). There's nothing to gain from forcing tiny embedded cores for inherently non-smp platforms to implement mockup atomics.
1 reply 0 retweets 0 likes -
They're necessary to implement synchronization between tasks, which is potentially useful in software on such cores, without a global sw ("kernel") helper. And the amount of logic needed for non-SMP implementation is utterly trivial.
1 reply 0 retweets 0 likes -
Replying to @RichFelker @pcwalton
There's nothing you'd need atomics for on an inherently non-smp platform. No matter how trivial the implementation would be, there's no reason to include it on non-smp platforms. Platform specs for platforms that may come in smp variants will certainly require A instructions.
1 reply 0 retweets 0 likes -
Yes there is. Atomics are just as important for non-SMP, to implement synchronization between tasks. Otherwise you need complex restart protocol mediated by scheduler.
1 reply 0 retweets 1 like -
Replying to @RichFelker @pcwalton
With non-smp platforms I mean platforms with only one core, not non-symmetric multicore platforms. Sorry, I should have been more clear. Let me rephrase: For platforms on which atomics make any sense whatsoever, the platform spec will require atomics.
1 reply 0 retweets 0 likes -
I'm not talking about non-symmetric MP. Pure single core. Atomics are absolutely needed there to implement multitasking without a kernel scheduler doing custom restart sequence mediation.
1 reply 0 retweets 2 likes -
See how Linux did atomics on pre-v6 ARM. It was ugly and led to lots of problems later on.
1 reply 0 retweets 0 likes -
Replying to @RichFelker @pcwalton
The (under construction) Linux platform specs does require atomics. There are other platforms for which atomics simply do not make sense. For platforms on which atomics make any sense, the platform spec will require atomics.
2 replies 0 retweets 0 likes
Correction, it's called "UNIX Platform Spec", not "Linux Platform Spec". :) https://github.com/riscv/riscv-platform-specs/blob/master/riscv-unix.adoc …
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.