Ralf Jung
db2c4b6dfa
implement strerror_r
2022-04-16 22:54:38 -04:00
Ralf Jung
0669b22759
rustup
2022-04-16 08:41:34 -04:00
Ralf Jung
855af088b8
remove no longer needed imports
2022-04-09 11:32:49 -04:00
Ralf Jung
d2cb11cc15
rustup
2022-04-09 09:41:29 -04:00
bors
be72564a64
Auto merge of #2055 - RalfJung:rustup, r=RalfJung
...
Rustup
Fixes https://github.com/rust-lang/miri/issues/1717
2022-04-08 13:57:45 +00:00
Ralf Jung
c8553d8162
fix Windows stdout/stderr
2022-04-08 09:57:25 -04:00
Ralf Jung
cac48dd734
treat prctl like a variadic function
2022-04-07 16:20:19 -04:00
Ralf Jung
59ee672fef
for variadic functions, accept arbitrary trailing arguments but make sure we check all leading arguments
2022-04-07 16:19:00 -04:00
Mara Bos
03417de176
Use let = if;
instead of let; if
.
2022-04-06 23:55:02 +02:00
Mara Bos
53ed500c92
Fully support FUTEX_*_BITSET.
2022-04-06 23:48:14 +02:00
Mara Bos
12c88886b0
Formatting.
2022-04-06 23:13:47 +02:00
Mara Bos
37cefa32d2
Add support for FUTEX_WAIT_BITSET(bitset=MAX).
2022-04-06 23:03:52 +02:00
Ralf Jung
6e1f3cd8ff
adjust for MemoryExtra being merged into Machine
2022-04-05 11:11:53 -04:00
Ralf Jung
830cc58f8a
rustup
2022-04-03 20:00:03 -04:00
Ralf Jung
aa04dc1eeb
Rust values can be up to isize::MAX in size
2022-04-01 17:22:01 -04:00
Ralf Jung
552b77e3b9
fix types in env shim to avoid ptr-int transmutes
2022-03-26 14:33:13 -04:00
Ralf Jung
65469fe85b
test remove_dir_all
2022-03-20 10:36:27 -04:00
bors
57786678d4
Auto merge of #1975 - DrMeepster:backtrace_fix, r=RalfJung
...
Make backtraces work with #[global_allocator]
Currently, backtraces break when the global allocator is overridden because the allocator will attempt to deallocate memory allocated directly by Miri.
~~This PR fixes that by using a new memory kind and providing a function to deallocate it. We can't call the custom allocator to allocate because it's not possible to call a function in the middle of a shim.~~
This PR fixes that by adding a new version of the backtrace API accessible by setting `flags` to 1. Existing code still functions.
backtrace-rs PR: rust-lang/backtrace-rs#462
Fixes https://github.com/rust-lang/miri/issues/1996
2022-03-20 02:37:09 +00:00
DrMeepster
2c670b10df
add new version of backtrace api using flags=1
2022-03-19 18:14:11 -07:00
Ralf Jung
1b1321a685
fix simd_bitmask shorter than a byte on big-endian
2022-03-17 13:14:16 -04:00
Ralf Jung
b5d3a25b49
detect when unused bits of a SIMD bitmask are non-0
2022-03-17 13:08:01 -04:00
Ralf Jung
bfed3c4f0d
implement simd bitmask intrinsics
2022-03-17 13:08:01 -04:00
Ralf Jung
4fd5dca27c
implement SIMD sqrt and fma
2022-03-16 22:13:43 -04:00
Ralf Jung
1f237b3b7d
implement SIMD float rounding functions
2022-03-16 18:53:36 -04:00
Ralf Jung
202964127b
implement fabs using soft floats
2022-03-16 18:33:59 -04:00
bors
a12a48bf72
Auto merge of #2018 - RalfJung:term, r=oli-obk
...
exclude TERM env var by default
Fixes https://github.com/rust-lang/miri/issues/1702
r? `@oli-obk`
2022-03-12 19:12:53 +00:00
Ralf Jung
47f8218d0d
add write_int_fields to replace write_packed_immediates
...
for stat, lookup fields by name
2022-03-12 12:17:23 -05:00
Ralf Jung
4bd6bc9098
use dirent64_layout and field projections for writing dirent info
2022-03-12 12:03:33 -05:00
Ralf Jung
3c5cb89f63
exclude TERM by default
2022-03-12 10:14:07 -05:00
Ralf Jung
27d5b846ee
rustup
2022-03-12 09:46:10 -05:00
Ralf Jung
41ffce1145
implement simd_scatter
2022-03-09 19:29:05 -05:00
Ralf Jung
576e2bbed5
implement gather
2022-03-09 19:29:05 -05:00
Ralf Jung
3eba7fcf73
implement simd_shuffle
2022-03-09 19:29:05 -05:00
Ralf Jung
d54c5fb668
rustup
2022-03-07 20:07:44 -05:00
Tavian Barnes
0886419524
Implement a readdir64() shim for Linux
...
Partial fix for #1966 .
2022-03-07 16:19:03 -05:00
Tavian Barnes
0088715411
Rename MiriMemoryKind::Env to Runtime
...
In preparation to use it for other runtime-internal allocations.
2022-03-07 16:19:03 -05:00
Ralf Jung
735bee2736
implement simd_saturating intrinsics
2022-03-07 14:12:59 -05:00
Ralf Jung
b87a9c90e1
fix handling of NaNs in simd max/min
2022-03-07 09:49:35 -05:00
Ralf Jung
2f97eb68a0
implement simd_fmax/fmin
2022-03-07 09:40:23 -05:00
Ralf Jung
9851b743c1
implement simd_reduce_min/max
2022-03-07 09:40:23 -05:00
Ralf Jung
db06d4998f
implement simd_cast, simd_as
2022-03-07 09:40:23 -05:00
Ralf Jung
b491b72673
implement simd_reduce_{add,mul}
2022-03-05 19:02:00 -05:00
Ralf Jung
3ed8ad4423
avoid repeated string matching, and add more simd_reduce intrinsics
2022-03-05 18:46:14 -05:00
bors
3854a76ace
Auto merge of #1970 - asquared31415:open_unix_varargs, r=RalfJung
...
Allow varargs for libc::open when it is allowed by the second argument
This PR allows `libc::open` to be called using two or three arguments as defined in https://man7.org/linux/man-pages/man2/open.2.html
The presence of the third argument depends on the value of the second argument. If the second argument dictates that the third argument is *required* miri will emit an error if the argument is missing. If the second argument does *not* require a third argument, then the argument is ignored and passed as 0 internally (it would be ignored by libc anyway)
2022-03-05 22:47:51 +00:00
asquared31415
8e97599af4
allow varargs for libc::open when it is allowed by the second argument
2022-03-05 17:29:48 -05:00
bors
926af6493b
Auto merge of #1999 - RalfJung:forward-env, r=oli-obk
...
add flag to forward specific env vars (while isolation remains enabled)
The flag is called `-Zmiri-env-forward=<var>`, but I am open to bikeshedding. ;)
2022-03-05 19:36:10 +00:00
Ralf Jung
90207a5484
implement missing SIMD comparison operators, simd_xor, and simd_reduce_all
2022-03-05 13:45:13 -05:00
Ralf Jung
ceec2b3ceb
avoid env var forwarding logic panicking for non-UTF-8 env vars
2022-03-05 11:14:37 -05:00
Ralf Jung
3adc203c1c
add flag to forward specific env vars (while isolation remains enabled)
2022-03-05 11:14:37 -05:00
Ralf Jung
0d4902f12f
implement simd_neg and simd_fabs
2022-03-03 14:54:54 -05:00