Richard Cooper has submitted this change. (
https://gem5-review.googlesource.com/c/public/gem5/+/52723 )
Change subject: ext: Add extra defines to libelf to support Apple silicon.
......................................................................
ext: Add extra defines to libelf to support Apple silicon.
The current version of libelf does not include a configuration
compatible with Apple silicon. This patch adds the required defines.
Change-Id: I9b7b9b1f711973159f31666d3fe480c2dc01a6b7
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/52723
Reviewed-by: Jason Lowe-Power <[email protected]>
Reviewed-by: Austin Harris <[email protected]>
Maintainer: Bobby R. Bruce <[email protected]>
Tested-by: kokoro <[email protected]>
---
M ext/libelf/_libelf_config.h
1 file changed, 24 insertions(+), 1 deletion(-)
Approvals:
Jason Lowe-Power: Looks good to me, but someone else must approve
Austin Harris: Looks good to me, approved
Bobby R. Bruce: Looks good to me, approved
kokoro: Regressions pass
diff --git a/ext/libelf/_libelf_config.h b/ext/libelf/_libelf_config.h
index 1b8f35b..b968441 100644
--- a/ext/libelf/_libelf_config.h
+++ b/ext/libelf/_libelf_config.h
@@ -36,9 +36,15 @@
#define LIBELF_ARCH EM_386
#define LIBELF_BYTEORDER ELFDATA2LSB
#define LIBELF_CLASS ELFCLASS32
+#elif defined(__aarch64__)
+#define LIBELF_ARCH EM_AARCH64
+#define LIBELF_BYTEORDER ELFDATA2LSB
+#define LIBELF_CLASS ELFCLASS64
+#else
+#error Unknown Apple or DragonFly architecture.
#endif
-#endif /* __DragonFly__ */
+#endif /* __APPLE__ || __DragonFly__ */
#ifdef __FreeBSD__
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/52723
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I9b7b9b1f711973159f31666d3fe480c2dc01a6b7
Gerrit-Change-Number: 52723
Gerrit-PatchSet: 2
Gerrit-Owner: Richard Cooper <[email protected]>
Gerrit-Reviewer: Austin Harris <[email protected]>
Gerrit-Reviewer: Bobby R. Bruce <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: Richard Cooper <[email protected]>
Gerrit-Reviewer: kokoro <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s