1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-10-17 13:29:17 +00:00
Commit Graph

5 Commits

Author SHA1 Message Date
Yannick Heneault
df5348fb14 emulator: support /dev/{u,}random configuration at compile time; default is still /dev/urandom (#396) 2018-08-10 15:40:08 +02:00
Jochen Hoenicke
c09590b54d Cleaner flash handling using FLASH_PTR
Use `FLASH_PTR` macro to convert a flash address to a const pointer.
For real hardware it is just a cast, for emulator we subtract the
`FLASH_ORIGIN` and use it as index into the memory mapped flash file.

Make write access to flash with volatile pointers

Also use FLASH_PTR in DebugMemory* for now.  This allows for reading and
writing the flash in the emulator or just crash it by reading outside
the flash...
2018-03-29 01:16:46 +02:00
Jochen Hoenicke
39ea33523d Don't hog CPU on shutdown 2018-03-29 01:03:58 +02:00
Jochen Hoenicke
4ebbe8c274 Fix compilation problems 2018-03-29 01:03:58 +02:00
Saleem Rashid
ba5b44d0c5 emulator: Initial commit 2017-12-18 20:09:59 +01:00