X-Git-Url: https://repo.jachan.dev/qemu.git/blobdiff_plain/bc24a225af2464dc30f88d6f930779cbf0e22b67..bdd4df332a1bdb20b7fa39ea741f7830e41e1187:/hw/cbus.c diff --git a/hw/cbus.c b/hw/cbus.c index ae8f57c579..7216899a09 100644 --- a/hw/cbus.c +++ b/hw/cbus.c @@ -17,8 +17,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * with this program; if not, see . */ #include "qemu-common.h" @@ -133,7 +132,7 @@ static void cbus_sel(void *opaque, int line, int level) CBus *cbus_init(qemu_irq dat) { - CBusPriv *s = (CBusPriv *) qemu_mallocz(sizeof(*s)); + CBusPriv *s = (CBusPriv *) g_malloc0(sizeof(*s)); s->dat_out = dat; s->cbus.clk = qemu_allocate_irqs(cbus_clk, s, 1)[0]; @@ -388,7 +387,7 @@ static void retu_io(void *opaque, int rw, int reg, uint16_t *val) void *retu_init(qemu_irq irq, int vilma) { - CBusRetu *s = (CBusRetu *) qemu_mallocz(sizeof(*s)); + CBusRetu *s = (CBusRetu *) g_malloc0(sizeof(*s)); s->irq = irq; s->irqen = 0xffff; @@ -604,7 +603,7 @@ static void tahvo_io(void *opaque, int rw, int reg, uint16_t *val) void *tahvo_init(qemu_irq irq, int betty) { - CBusTahvo *s = (CBusTahvo *) qemu_mallocz(sizeof(*s)); + CBusTahvo *s = (CBusTahvo *) g_malloc0(sizeof(*s)); s->irq = irq; s->irqen = 0xffff;