Elliott Hughes | a0664b9 | 2017-04-18 17:46:52 -0700 | [diff] [blame] | 1 | <html> |
| 2 | <head> |
| 3 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
| 4 | <title>11. README.mips</title> |
| 5 | <link rel="stylesheet" type="text/css" href="vg_basic.css"> |
Elliott Hughes | ed39800 | 2017-06-21 14:41:24 -0700 | [diff] [blame] | 6 | <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> |
Elliott Hughes | a0664b9 | 2017-04-18 17:46:52 -0700 | [diff] [blame] | 7 | <link rel="home" href="index.html" title="Valgrind Documentation"> |
| 8 | <link rel="up" href="dist.html" title="Valgrind Distribution Documents"> |
| 9 | <link rel="prev" href="dist.readme-android_emulator.html" title="10. README.android_emulator"> |
| 10 | <link rel="next" href="dist.readme-solaris.html" title="12. README.solaris"> |
| 11 | </head> |
| 12 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
| 13 | <div><table class="nav" width="100%" cellspacing="3" cellpadding="3" border="0" summary="Navigation header"><tr> |
| 14 | <td width="22px" align="center" valign="middle"><a accesskey="p" href="dist.readme-android_emulator.html"><img src="images/prev.png" width="18" height="21" border="0" alt="Prev"></a></td> |
| 15 | <td width="25px" align="center" valign="middle"><a accesskey="u" href="dist.html"><img src="images/up.png" width="21" height="18" border="0" alt="Up"></a></td> |
| 16 | <td width="31px" align="center" valign="middle"><a accesskey="h" href="index.html"><img src="images/home.png" width="27" height="20" border="0" alt="Up"></a></td> |
| 17 | <th align="center" valign="middle">Valgrind Distribution Documents</th> |
| 18 | <td width="22px" align="center" valign="middle"><a accesskey="n" href="dist.readme-solaris.html"><img src="images/next.png" width="18" height="21" border="0" alt="Next"></a></td> |
| 19 | </tr></table></div> |
| 20 | <div class="chapter"> |
| 21 | <div class="titlepage"><div><div><h1 class="title"> |
| 22 | <a name="dist.readme-mips"></a>11. README.mips</h1></div></div></div> |
| 23 | <div class="literallayout"><p><br> |
| 24 | <br> |
| 25 | Supported platforms<br> |
| 26 | -------------------<br> |
| 27 | - MIPS32 and MIPS64 platforms are currently supported.<br> |
| 28 | - Both little-endian and big-endian cores are supported.<br> |
| 29 | - MIPS DSP ASE on MIPS32 platforms is supported.<br> |
| 30 | <br> |
| 31 | <br> |
| 32 | Building V for MIPS<br> |
| 33 | -------------------<br> |
| 34 | - Native build is available for all supported platforms. The build system<br> |
| 35 | expects that native GCC is configured correctly and optimized for the platform.<br> |
| 36 | Yet, this may not be the case with some Debian distributions which configure<br> |
| 37 | GCC to compile to "mips1" by default. Depending on a target platform, using<br> |
| 38 | CFLAGS="-mips32r2", CFLAGS="-mips32" or CFLAGS="-mips64" or<br> |
| 39 | CFLAGS="-mips64 -mabi=64" will do the trick and compile Valgrind correctly.<br> |
| 40 | <br> |
| 41 | - Use of cross-toolchain is supported as well.<br> |
| 42 | - Example of configure line and additional configure options:<br> |
| 43 | <br> |
| 44 | $ ./configure --host=mipsel-linux-gnu --prefix=<path_to_install_directory><br> |
| 45 | <br> |
| 46 | * --host=mips-linux-gnu is necessary only if Valgrind is built on platform<br> |
| 47 | other then MIPS, tools for building MIPS application have to be in PATH.<br> |
| 48 | <br> |
| 49 | * --host=mips-linux-gnu is necessary if you compile it with cross toolchain<br> |
| 50 | compiler for big endian platform.<br> |
| 51 | <br> |
| 52 | * --host=mipsel-linux-gnu is necessary if you compile it with cross toolchain<br> |
| 53 | compiler for little endian platform.<br> |
| 54 | <br> |
| 55 | * --build=mips-linux is needed if you want to build it for MIPS32 on 64-bit<br> |
| 56 | MIPS system.<br> |
| 57 | <br> |
| 58 | * If you are compiling Valgrind for mips32 with gcc version older then<br> |
| 59 | gcc (GCC) 4.5.1, you must specify CFLAGS="-mips32r2 -mplt", e.g.<br> |
| 60 | <br> |
| 61 | ./configure --prefix=<path_to_install_directory><br> |
| 62 | CFLAGS="-mips32r2 -mplt"<br> |
| 63 | <br> |
| 64 | <br> |
| 65 | Limitations<br> |
| 66 | -----------<br> |
| 67 | - Some gdb tests will fail when gdb (GDB) older than 7.5 is used and gdb is<br> |
| 68 | not compiled with '--with-expat=yes'.<br> |
| 69 | - You can not compile tests for DSP ASE if you are using gcc (GCC) older<br> |
| 70 | then 4.6.1 due to a bug in the toolchain.<br> |
| 71 | - Older GCC may have issues with some inline assembly blocks. Get a toolchain<br> |
| 72 | based on newer GCC versions, if possible.<br> |
| 73 | <br> |
| 74 | </p></div> |
| 75 | </div> |
| 76 | <div> |
| 77 | <br><table class="nav" width="100%" cellspacing="3" cellpadding="2" border="0" summary="Navigation footer"> |
| 78 | <tr> |
| 79 | <td rowspan="2" width="40%" align="left"> |
| 80 | <a accesskey="p" href="dist.readme-android_emulator.html"><< 10. README.android_emulator</a> </td> |
| 81 | <td width="20%" align="center"><a accesskey="u" href="dist.html">Up</a></td> |
| 82 | <td rowspan="2" width="40%" align="right"> <a accesskey="n" href="dist.readme-solaris.html">12. README.solaris >></a> |
| 83 | </td> |
| 84 | </tr> |
| 85 | <tr><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td></tr> |
| 86 | </table> |
| 87 | </div> |
| 88 | </body> |
| 89 | </html> |