Created
November 8, 2016 02:37
-
-
Save tiagoshibata/df277ae902c5821aa6f0a16446447bd7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM khaledhassan/simplescalar | |
MAINTAINER Tiago Koji Castro Shibata <tiago.shibata@gmail.com> | |
COPY simplesim-pisa-cross-endian.patch /simplescalar | |
RUN cd /simplescalar && patch -p1 < simplesim-pisa-cross-endian.patch | |
RUN cd /simplescalar/simplesim-3.0 \ | |
&& find -maxdepth 1 -executable -type f -name 'sim-*' -printf '%P\n' | \ | |
while read f ; do mv $f pisa-$f ; done | |
RUN cd /simplescalar/simplesim-3.0 && make clean && make config-pisabig && make \ | |
&& find -maxdepth 1 -executable -type f -name 'sim-*' -printf '%P\n' | \ | |
while read f ; do mv $f pisabig-$f ; done | |
RUN cd /simplescalar/simplesim-3.0 && make clean && make config-alpha && make \ | |
&& find -maxdepth 1 -executable -type f -name 'sim-*' -printf '%P\n' | \ | |
while read f ; do mv $f alpha-$f ; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- original/simplesim-3.0/target-pisa/pisa.h 2016-11-07 23:58:16.351355355 -0200 | |
+++ patched/simplesim-3.0/target-pisa/pisa.h 2016-11-07 23:58:39.108022571 -0200 | |
@@ -186,8 +186,8 @@ | |
#define MD_SWAPH(X) SWAP_HALF(X) | |
#define MD_SWAPW(X) SWAP_WORD(X) | |
#define MD_SWAPQ(X) SWAP_QWORD(X) | |
-#define MD_SWAPI(X) ((X).a = SWAP_WORD((X).a), \ | |
- (X).b = SWAP_WORD((X).b)) | |
+#define MD_SWAPI(X) ((md_inst_t){.a = SWAP_WORD((X).a), \ | |
+ .b = SWAP_WORD((X).b)}) | |
#else /* !MD_CROSS_ENDIAN */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment