destPred.reset();
for (unsigned i = 0; i < eCount; i++) {
const Element& srcElem1 = AA64FpOp1_x[i];
- %(src_elem_2_ty)s srcElem2 __attribute__((unused)) =
- %(src_elem_2)s;
+ M5_VAR_USED %(src_elem_2_ty)s srcElem2 = %(src_elem_2)s;
bool destElem = false;
if (tmpPred[i]) {
%(op)s
{
public:
- typedef struct {
+ typedef struct M5_ATTR_PACKED {
uint64_t st_dev;
uint8_t __pad0[4];
uint32_t __st_ino;
uint32_t st_ctimeX;
uint32_t st_ctime_nsec;
uint64_t st_ino;
- } __attribute__((__packed__)) tgt_stat64;
+ } tgt_stat64;
static const int TGT_SIGHUP = 0x000001;
static const int TGT_SIGINT = 0x000002;
};
#define HOME_ADDRESS_OPTION 0xC9
-struct ip6_opt_dstopts {
+struct M5_ATTR_PACKED ip6_opt_dstopts {
uint8_t type;
uint8_t length;
ip6_addr_t addr;
-} __attribute__((packed));
+};
-struct ip6_opt_hdr
+struct M5_ATTR_PACKED ip6_opt_hdr
{
uint8_t ext_nxt;
uint8_t ext_len;
struct ip6_opt_routing_type2 rtType2;
struct ip6_opt_dstopts dstOpts;
} ext_data;
-} __attribute__((packed));
+};
struct Ip6Opt : public ip6_opt_hdr
{
#include <vector>
#include "base/callback.hh"
+#include "base/compiler.hh"
#include "base/statistics.hh"
#include "base/types.hh"
#include "config/the_gpu_isa.hh"
int32_t
getRefCounter(const uint32_t dispatchId, const uint32_t wgId) const;
- bool
- sendToLds(GPUDynInstPtr gpuDynInst) __attribute__((warn_unused_result));
+ M5_NODISCARD bool sendToLds(GPUDynInstPtr gpuDynInst);
typedef std::unordered_map<Addr, std::pair<int, int>> pageDataStruct;
pageDataStruct pageAccesses;
#include <string>
#include <vector>
+#include "base/compiler.hh"
#include "base/cprintf.hh"
#include "base/logging.hh"
#include "base/types.hh"
* Make the commands array weak so that they can be overridden (used
* by unit tests to specify a different python main function.
*/
-const char * __attribute__((weak)) m5MainCommands[] = {
+M5_WEAK const char *m5MainCommands[] = {
"import m5",
"m5.main()",
0 // sentinel is required