Skip to content

Instantly share code, notes, and snippets.

@evancox10
evancox10 / devices.cc
Created October 13, 2017 20:07
Fix riscv-isa-sim/riscv/devices.cc
#include "devices.h"
void bus_t::add_device(reg_t addr, abstract_device_t* dev)
{
// Searching devices via lower_bound/upper_bound
// implicitly relies on the underlying std::map
// container to sort the keys and provide ordered
// iteration over this sort, which it does. (python's
// SortedDict is a good analogy)
devices[addr] = dev;
@evancox10
evancox10 / link.ld
Last active October 11, 2017 22:38
Spike Bare Metal Example (Not working)
@evancox10
evancox10 / gist:b0982f0c6f9c1b774d5d1bb19de3f2fd
Created February 10, 2017 22:53
Packer Debug Log for Hyper-V VHDX BlockSize bug
PS C:\Users\Evan\packer_test> packer build hyperv-ubuntu-16.04.json | Tee-Object debug.log
2017/02/10 16:45:07 [INFO] Packer version: 0.12.2
2017/02/10 16:45:07 Packer Target OS/Arch: windows amd64
2017/02/10 16:45:07 Built with Go Version: go1.7.4
2017/02/10 16:45:07 Using internal plugin for triton
2017/02/10 16:45:07 Using internal plugin for amazon-chroot
2017/02/10 16:45:07 Using internal plugin for hyperv-iso
2017/02/10 16:45:07 Using internal plugin for openstack
2017/02/10 16:45:07 Using internal plugin for cloudstack
2017/02/10 16:45:07 Using internal plugin for null

Keybase proof

I hereby claim:

  • I am evancox10 on github.
  • I am evancox10 (https://keybase.io/evancox10) on keybase.
  • I have a public key whose fingerprint is 7D31 85B1 4712 EF59 935D 80F5 FB10 D3CC 32AE 995F

To claim this, I am signing this object: