News for hackers. Stuff that matters.
Re:Building a More Secure World with the RISC-V ISA by snvzz on Sunday January 07, 2018 @02:56AM (#16089820)
They do have a point.

The more the complexity, the harder it is to keep software (or hardware, which for CPUs is defined as software) bug-free.

CISC simply has no place in the networked world, and RISC-V is the best RISC architecture.

Re:Building a More Secure World with the RISC-V ISA by vardump on Sunday January 07, 2018 @06:53AM (#16090500)
Nineties probably wants its CISC vs RISC fight back.

Nowadays it just doesn't matter, because CPUs translate ISA into whatever they please.

Cache and out of order buffers (speculation) is what is behind latest security issues.

Re:Building a More Secure World with the RISC-V ISA by ant6n on Sunday January 07, 2018 @08:45AM (#16090824)
> Cache and out of order buffers (speculation) is what is behind latest security issues.

That's one way to look at it. Another is that opaque CPU designs are a big issue (at least for meltdown, which is a bug; spectre is more of a broken design philosophy).

Re:Building a More Secure World with the RISC-V ISA by snvzz on Sunday January 07, 2018 @07:22AM (#16090602)
>Nowadays it just doesn't matter, because CPUs translate ISA to whatever they please.

Doing that comes at a cost, which compounds the complexity already added by merit of being CISC in the first place.

Re:Building a More Secure World with the RISC-V ISA by vardump on Sunday January 07, 2018 @08:01AM (#16090723)
Larger code size is not for free either.

Besides, this translation layer is not a major source of complexity anymore. Even instruction decoding in x86 is not a big deal anymore.

Re:Building a More Secure World with the RISC-V ISA by snvzz on Sunday January 07, 2018 @09:41AM (#16090980)
>Larger code size is not for free either.

What larger code size?

RISC-V is no worse than x86-64.

Refer to: https://riscv.org/wp-content/uploads/2016/07/Tue1130celio-fu...

Re:Building a More Secure World with the RISC-V ISA by vardump on Sunday January 07, 2018 @10:16AM (#16091096)
That's a nice property for sure. Typically RISC ISAs have had larger code size.

Being a new ISA, RISC-V does have an advantage of being able to learn from past mistakes.

Re:Building a More Secure World with the RISC-V ISA by snvzz on Sunday January 07, 2018 @10:20AM (#16091108)
Simple vs Complex, but same code size. An easy win for simple.

It's very nice, indeed. Unlike the established RISC ISAs, this one's created with decades of RISC (and CISC) experience to draw from.

I'd of course still have my doubts whether this is going to draw any traction, if it wasn't for the list of RISC-V Foundation members.

Re:Building a More Secure World with the RISC-V ISA by microcolonel on Sunday January 07, 2018 @03:02PM (#16092365)
I think you somewhat underestimate the complexity introduced by decoding x86, and working with the resulting μ-ops.
Re:Building a More Secure World with the RISC-V ISA by dbcurtis on Sunday January 07, 2018 @11:34AM (#16091384)
Today there is a benefit from the higher code density of CISC. 1. Less memory bandwith expended moving instructuons into I-cache. 2. Less die area spent on I-cache per unit of "code functionality", however you mesure that.

RISC only made sense when logic cycle times, memory cycle times, and I/O cycle times were at rough parity.

Re:Building a More Secure World with the RISC-V ISA by snvzz on Sunday January 07, 2018 @12:02PM (#16091510)
If you read the rest of the thread, you'd find that both of your points are moot, as RISC-V code density is no worse than x86-64.

As for your claims on RISC not making sense, I'll just say it makes more sense than ever, as complexity leads to issues, which could affect security, and security is important in the present networked world.

Re:Building a More Secure World with the RISC-V ISA by fooker on Sunday January 07, 2018 @06:27AM (#16090428)
Having complex instructions is not the only way to make a complex processor. With a very simple ISA, to even come close to what a modern processor can do with a certain amount of time and power requires a ridiculously complicated design.

This is why Spectre is as ubiquitous as it is. Speculative execution is not a feature someone implements just for the sake of it.

Re:Building a More Secure World with the RISC-V ISA by snvzz on Sunday January 07, 2018 @07:27AM (#16090619)
>To even come close to what a modern processor can do with a certain amount of time and power REQUIRES a ridiculously complicated design.

Requires is debatable. If someone manages to match it with a simpler design, it's an improvement. RISC-V open implementations are surprisingly very competitive already.

>With a very simple ISA,

Seems to imply that this is a minus, but what CISC really means in the present world is that there's a CISC->RISC translation layer, which is not free, and a lot of work passed down to toolchain developers, as they have to generate code for a CISC ISA.

In x86/amd64, the complexity is such that no individual can be expected to understand the whole thing, and CPU designers, low level software and compiler developers have to deal with this (and will inevitably screw up). Why this isn't seen as a massive problem baffles me.

Re:Building a More Secure World with the RISC-V ISA by vardump on Sunday January 07, 2018 @08:56AM (#16090863)
> there's a CISC->RISC translation layer...

More like a mixture of something like CISC->VLIW and CISC->"micro-ops". Remember x86 implementations can actually combine x86 ISA instruction pairs into a micro-op [0].

RISC is just a concept that was a great fit to the constraints the industry had in the nineties. It was great for achieving high clock speeds back then. The constraints are just different nowadays.

[0]: https://en.wikichip.org/wiki/macro-operation_fusion

Re:Building a More Secure World with the RISC-V ISA by snvzz on Sunday January 07, 2018 @09:49AM (#16091004)
>VLIW

In RISC-V parlance, it'd be the new vector extensions. They're pretty cool as they've made the width variable. Refer to 7th workshop proceedings.

>micro-ops

Are a fancy word. It just means a (hidden) RISC architecture. There's a bunch of RISC architectures out there, but they get down to doing more or less the same things.

Most RISC and CISC architectures in use today are evolved from ones existing back in the 80s, and carry a lot of baggage. RISC-V benefits from having a clean slate at this, using the experience of existing ISAs.

>can actually combine x86 ISA instruction pairs into a micro-op

More complexity, and more tickets for the implementation bug lottery.

Re:Building a More Secure World with the RISC-V ISA by jabl on Sunday January 07, 2018 @01:49PM (#16092003)
> >can actually combine x86 ISA instruction pairs into a micro-op

> More complexity, and more tickets for the implementation bug lottery.

Well, the slides (and accompanying paper) you linked to earlier in this thread makes the cases for using macro-op fusion in high-performance RISC-V designs.

Re:Building a More Secure World with the RISC-V ISA by snvzz on Sunday January 07, 2018 @02:54PM (#16092327)
It does and I'm well aware of it. It proposes settling on an idiom rather than a new instruction, for a very common sequence.

Very nice and very clean when done as they propose with this RISC ISA.

Re:Building a More Secure World with the RISC-V ISA by fooker on Thursday January 11, 2018 @03:49AM (#16122335)
>RISC-V open implementations are surprisingly very competitive already.

Do you have some sources for this?