Git Product home page Git Product logo

Comments (5)

aswaterman avatar aswaterman commented on July 19, 2024

We had a discussion on this topic on #1570 and concluded that, when there's a require(vstart == 0), we should delete the explicit write of vstart. In #1573, some, but not all, of these were deleted. If you want to finish the job, go for it!

from riscv-isa-sim.

rbuchner-aril avatar rbuchner-aril commented on July 19, 2024

Thanks for the response. Looks like I was slightly behind the most recent master when making this report; I think only vmcompress.vm has this issue still.

However, it utilizes VI_LOOP_END macro, which contains

#define VI_LOOP_END \
  } \
  P.VU.vstart->write(0);

Just wanted to check to see that you are fine removing the call to this macro in vcompress_vm.h and replacing it with a single }. Another option would be to create a subset of this macro but that seems like overkill for this one case, though it could be better in the long run in case VI_LOOP_END ever needs updated.

v_ext_macros.h

#define VI_LOOP_END_BASE \
  }

#define VI_LOOP_END \
  VI_LOOP_END_BASE \
  P.VU.vstart->write(0);

VI_LOOP_END_BASE would only be used in vcompress_vm.h

Thoughts?

from riscv-isa-sim.

aswaterman avatar aswaterman commented on July 19, 2024

The second option seems cleaner to me since it keeps the implementation of vcompress.vm more symmetric. OK with you, too, @jerryz123?

from riscv-isa-sim.

jerryz123 avatar jerryz123 commented on July 19, 2024

Yes, the second approach seems more future proof for future extensions which will pattern-match off these definitions

from riscv-isa-sim.

aswaterman avatar aswaterman commented on July 19, 2024

Resolved by #1624

from riscv-isa-sim.

Related Issues (20)

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.