| 1 |
<html> |
| 2 |
<head> |
| 3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 4 |
<title>11. README.mips</title> |
| 5 |
<link rel="stylesheet" type="text/css" href="vg_basic.css"> |
| 6 |
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"> |
| 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-riscv64.html" title="12. README.riscv64"> |
| 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-riscv64.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-musl is necessary if you compile it with cross toolchain<br> |
| 53 |
compiler for little endian platform.<br> |
| 54 |
<br> |
| 55 |
* --host=nanomipseb-linux-gnu is necessary if you compile it with cross toolchain<br> |
| 56 |
compiler for nanoMIPS big endian platform.<br> |
| 57 |
<br> |
| 58 |
* --host=nanomips-linux-gnu is necessary if you compile it with cross toolchain<br> |
| 59 |
compiler for nanoMIPS little endian platform.<br> |
| 60 |
<br> |
| 61 |
* --build=mips-linux is needed if you want to build it for MIPS32 on 64-bit<br> |
| 62 |
MIPS system.<br> |
| 63 |
<br> |
| 64 |
* If you are compiling Valgrind for mips32 with gcc version older then<br> |
| 65 |
gcc (GCC) 4.5.1, you must specify CFLAGS="-mips32r2 -mplt", e.g.<br> |
| 66 |
<br> |
| 67 |
./configure --prefix=<path_to_install_directory><br> |
| 68 |
CFLAGS="-mips32r2 -mplt"<br> |
| 69 |
<br> |
| 70 |
<br> |
| 71 |
Limitations<br> |
| 72 |
-----------<br> |
| 73 |
- Some gdb tests will fail when gdb (GDB) older than 7.5 is used and gdb is<br> |
| 74 |
not compiled with '--with-expat=yes'.<br> |
| 75 |
- You can not compile tests for DSP ASE if you are using gcc (GCC) older<br> |
| 76 |
then 4.6.1 due to a bug in the toolchain.<br> |
| 77 |
- Older GCC may have issues with some inline assembly blocks. Get a toolchain<br> |
| 78 |
based on newer GCC versions, if possible.<br> |
| 79 |
- Systems with a mips64 cpu having only o32 libraries will misconfigure in case<br> |
| 80 |
no appropriate architecture flag is specified during configure time.<br> |
| 81 |
Be sure to set either mips32 or mips32r2 as the target architecture in that<br> |
| 82 |
case.<br> |
| 83 |
- Some tests can not be compiled for nanoMIPS due to limitations in<br> |
| 84 |
preliminary GCC for nanoMIPS. You can use '-i' switch for building tests.<br> |
| 85 |
<br> |
| 86 |
</p></div> |
| 87 |
</div> |
| 88 |
<div> |
| 89 |
<br><table class="nav" width="100%" cellspacing="3" cellpadding="2" border="0" summary="Navigation footer"> |
| 90 |
<tr> |
| 91 |
<td rowspan="2" width="40%" align="left"> |
| 92 |
<a accesskey="p" href="dist.readme-android_emulator.html"><< 10. README.android_emulator</a> </td> |
| 93 |
<td width="20%" align="center"><a accesskey="u" href="dist.html">Up</a></td> |
| 94 |
<td rowspan="2" width="40%" align="right"> <a accesskey="n" href="dist.readme-riscv64.html">12. README.riscv64 >></a> |
| 95 |
</td> |
| 96 |
</tr> |
| 97 |
<tr><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td></tr> |
| 98 |
</table> |
| 99 |
</div> |
| 100 |
</body> |
| 101 |
</html> |