An emulator for approximate memory platforms based on QEmu