# std.Target: Use v9 as the baseline CPU for sparc32\. · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/27775f1a9eecc6142834affb524eadd33b9e56b7)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 27775f1a9eecc6142834affb524eadd33b9e56b7

Requested commit: 27775f1a9eecc6142834affb524eadd33b9e56b7

Commit: 27775f1a9eecc6142834affb524eadd33b9e56b7

Tree: a435efb643f82390944f30c627ced253a143ba47

Author: Alex Rønne Petersen

Committer: Alex Rønne Petersen

## Message

```
std.Target: Use v9 as the baseline CPU for sparc32.

It is impossible to even build projects like glibc when targeting a generic
SPARC v8 CPU; LEON3 is effectively considered the baseline for `sparc-linux-gnu`
now, particularly due to it supporting a CASA instruction similar to the one in
SPARC v9. However, it's slightly incompatible with SPARC v9 due to having a
different ASI tag, so resulting binaries would not be portable to regular SPARC
CPUs. So, as the least bad option, make v9 the baseline for sparc32.

```

## Parents

- [4ba9a6f44c07ac4501766704f39c2d749b01d8da](https://git.cafe/gitcafe/zig/commit/4ba9a6f44c07ac4501766704f39c2d749b01d8da?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/27775f1a9eecc6142834affb524eadd33b9e56b7?format=markdown)
