From 845433025772e7d5fda6bcde1cd804a36f46a4e8 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 10 Sep 2018 23:34:49 -0700 Subject: systemc: Ensure SC_LONG_64 is defined and available. The datatype code was checking if SC_LONG_64 was defined to determine if a long was 64 bits. The code that would define that value was dropped when porting over from the Accellera implementation, and so the wrong code was being included. This change both makes those checks look at the *value* of SC_LONG_64 to ensure that it's not missing by accident, and assigns it a value in sc_fxdefs.hh. Change-Id: Ie9bb1146452a3db1d9d99c0db575098bb06463ff Reviewed-on: https://gem5-review.googlesource.com/c/12616 Reviewed-by: Gabe Black Maintainer: Gabe Black --- src/systemc/ext/dt/bit/sc_proxy.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/systemc/ext/dt/bit') diff --git a/src/systemc/ext/dt/bit/sc_proxy.hh b/src/systemc/ext/dt/bit/sc_proxy.hh index cf7bcbfc9..12e10725a 100644 --- a/src/systemc/ext/dt/bit/sc_proxy.hh +++ b/src/systemc/ext/dt/bit/sc_proxy.hh @@ -816,7 +816,7 @@ sc_proxy::assign_(int a) return x; } -#if defined(SC_LONG_64) +#if SC_LONG_64 template inline X & sc_proxy::assign_(unsigned long a) -- cgit v1.2.3