diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-17 17:14:51 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-17 17:14:51 +0000 |
commit | 87ecb68bdf8a3e40ef885ddbb7ca1797dca40ebf (patch) | |
tree | f8c5c8eb6e34a6d492a9638d62489e7569f8b046 /hw/i2c.c | |
parent | 257514ddce752fe0b4aeb4b7957bc5661eadbef8 (diff) | |
download | qemu-87ecb68bdf8a3e40ef885ddbb7ca1797dca40ebf.zip qemu-87ecb68bdf8a3e40ef885ddbb7ca1797dca40ebf.tar.gz qemu-87ecb68bdf8a3e40ef885ddbb7ca1797dca40ebf.tar.bz2 |
Break up vl.h.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3674 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/i2c.c')
-rw-r--r-- | hw/i2c.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -7,7 +7,8 @@ * This code is licenced under the LGPL. */ -#include "vl.h" +#include "hw.h" +#include "i2c.h" struct i2c_bus { @@ -30,7 +31,7 @@ i2c_slave *i2c_slave_init(i2c_bus *bus, int address, int size) i2c_slave *dev; if (size < sizeof(i2c_slave)) - cpu_abort(cpu_single_env, "I2C struct too small"); + hw_error("I2C struct too small"); dev = (i2c_slave *)qemu_mallocz(size); dev->address = address; |