misc: Use compiler.hh macros when available.
Some places were hand coding __attribute__s when macros in compiler.hh were available to do that job. Using the macros helps abstract away compiler specific details and should be used when possible. Change-Id: I94befebcfde2d673e874e9959588f69781bd9021 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/35975 Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br> Maintainer: Gabe Black <gabeblack@google.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -563,13 +563,13 @@ struct ip6_opt_routing_type2 {
|
||||
};
|
||||
|
||||
#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;
|
||||
@@ -578,7 +578,7 @@ struct ip6_opt_hdr
|
||||
struct ip6_opt_routing_type2 rtType2;
|
||||
struct ip6_opt_dstopts dstOpts;
|
||||
} ext_data;
|
||||
} __attribute__((packed));
|
||||
};
|
||||
|
||||
struct Ip6Opt : public ip6_opt_hdr
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user