Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

VCS Q-2020.03 (at least) fails because it can't find nullptr #572

Merged
merged 1 commit into from
Dec 6, 2022

Conversation

stevenmburns
Copy link

VCS (version Q-2020.03) integration with chiseltest fails with a compiler error when compiling vpi.cpp. It seems that nullptr is not defined. Everywhere else, NULL seems to be used for the same thing. I made that change and now all my tests in chisel-pla work with treadle, verilator and now vcs.
I don't know your testing strategy for VCS because it is not an open source tool. Let me know if you would like me to run any tests on main against these changes.

@CLAassistant
Copy link

CLAassistant commented Dec 6, 2022

CLA assistant check
All committers have signed the CLA.

@@ -32,7 +32,7 @@ class vpi_api_t: public sim_api_t<vpiHandle> {
vpiHandle syscall_handle = vpi_handle(vpiSysTfCall, NULL);
vpiHandle arg_iter = vpi_iterate(vpiArgument, syscall_handle);
// Cache Inputs
if(arg_iter != nullptr) {
if(arg_iter != NULL) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems reasonable.

Probably this is somehow compiled by an old compiler which does not support C++11 (https://en.cppreference.com/w/cpp/language/nullptr) by default.

Copy link
Collaborator

@ekiwi ekiwi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM

@ekiwi ekiwi added this to the 0.5.x milestone Dec 6, 2022
@ekiwi ekiwi added the Please Merge Accepted PRs that are ready to be merged. Useful when waiting on CI. label Dec 6, 2022
@mergify mergify bot merged commit 9c6b387 into ucb-bar:main Dec 6, 2022
mergify bot pushed a commit that referenced this pull request Dec 6, 2022
@mergify mergify bot added the Backported This PR has been backported to marked stable branch label Dec 6, 2022
mergify bot added a commit that referenced this pull request Dec 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Backported This PR has been backported to marked stable branch Please Merge Accepted PRs that are ready to be merged. Useful when waiting on CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants