From nobody Tue May 14 16:29:43 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1576500385; cv=none; d=zohomail.com; s=zohoarc; b=iqrJg2HzcqTfCyPxLrD/D2VJxBywaacDCI/s8+2WRQAkcaBA3BcRM4hvx+90RYkEBYTyrwy/avdMLX2mS3OdsNNI2T4BbXbXKLq57nBXoS9LJgmmgaZx41gyhMGqUZ4S1rjAQT710CJxcfO9oBI29LrAvapMCEY4LX6v3KrLGLE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576500385; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=adfWSgsfME/Ti3c+8+N9fPQEZLgxbJ6GwNxv0mXcsEQ=; b=IceAbrSw3Ysbov98BiUbVhGCosHyErsaaOrR3IajJ+WCskU32ZAzajeLvvWOJLBc9mW0Q6eLbneYWSYE4PhmqPH1cQciJyRpMQr25EbgBiYhvaPxbVvbYpiDMWsXtaE/sC11Bmlyq8yQk/GpoHeD+FMTv7vZMifeKl9qoc5TH1o= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1576500385803278.12966464179533; Mon, 16 Dec 2019 04:46:25 -0800 (PST) Received: from localhost ([::1]:52880 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igplX-0000Kx-S5 for importer@patchew.org; Mon, 16 Dec 2019 07:46:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58784) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igpjP-0006kI-Fi for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igpjL-0006v0-PM for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:10 -0500 Received: from mx2.rt-rk.com ([89.216.37.149]:42905 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1igpjL-0005li-DF for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:07 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id A0B7F1A20A7; Mon, 16 Dec 2019 13:43:01 +0100 (CET) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.14.106]) by mail.rt-rk.com (Postfix) with ESMTPSA id 7B0221A2062; Mon, 16 Dec 2019 13:43:01 +0100 (CET) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Subject: [PULL 01/11] mips: jazz: Renovate coding style Date: Mon, 16 Dec 2019 13:42:42 +0100 Message-Id: <1576500172-11264-2-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1576500172-11264-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1576500172-11264-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 89.216.37.149 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Filip Bozuta The script checkpatch.pl located in scripts folder was used to detect all errors and warrnings in files: hw/mips/mips_jazz.c hw/display/jazz_led.c hw/dma/rc4030.c All these mips jazz machine files were edited and all the errors and warrings generated by the checkpatch.pl script were corrected and then the script was ran again to make sure there are no more errors and warnings. Signed-off-by: Filip Bozuta Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Markovic Message-Id: <1575640687-20744-2-git-send-email-Filip.Bozuta@rt-rk.com> --- hw/display/jazz_led.c | 123 +++++++++++++++++++++++++---------------------= ---- hw/dma/rc4030.c | 12 +++-- hw/mips/mips_jazz.c | 32 +++++++------ 3 files changed, 88 insertions(+), 79 deletions(-) diff --git a/hw/display/jazz_led.c b/hw/display/jazz_led.c index 3e0112b..1d84559 100644 --- a/hw/display/jazz_led.c +++ b/hw/display/jazz_led.c @@ -90,25 +90,25 @@ static void draw_horizontal_line(DisplaySurface *ds, =20 bpp =3D (surface_bits_per_pixel(ds) + 7) >> 3; d =3D surface_data(ds) + surface_stride(ds) * posy + bpp * posx1; - switch(bpp) { - case 1: - for (x =3D posx1; x <=3D posx2; x++) { - *((uint8_t *)d) =3D color; - d++; - } - break; - case 2: - for (x =3D posx1; x <=3D posx2; x++) { - *((uint16_t *)d) =3D color; - d +=3D 2; - } - break; - case 4: - for (x =3D posx1; x <=3D posx2; x++) { - *((uint32_t *)d) =3D color; - d +=3D 4; - } - break; + switch (bpp) { + case 1: + for (x =3D posx1; x <=3D posx2; x++) { + *((uint8_t *)d) =3D color; + d++; + } + break; + case 2: + for (x =3D posx1; x <=3D posx2; x++) { + *((uint16_t *)d) =3D color; + d +=3D 2; + } + break; + case 4: + for (x =3D posx1; x <=3D posx2; x++) { + *((uint32_t *)d) =3D color; + d +=3D 4; + } + break; } } =20 @@ -121,25 +121,25 @@ static void draw_vertical_line(DisplaySurface *ds, =20 bpp =3D (surface_bits_per_pixel(ds) + 7) >> 3; d =3D surface_data(ds) + surface_stride(ds) * posy1 + bpp * posx; - switch(bpp) { - case 1: - for (y =3D posy1; y <=3D posy2; y++) { - *((uint8_t *)d) =3D color; - d +=3D surface_stride(ds); - } - break; - case 2: - for (y =3D posy1; y <=3D posy2; y++) { - *((uint16_t *)d) =3D color; - d +=3D surface_stride(ds); - } - break; - case 4: - for (y =3D posy1; y <=3D posy2; y++) { - *((uint32_t *)d) =3D color; - d +=3D surface_stride(ds); - } - break; + switch (bpp) { + case 1: + for (y =3D posy1; y <=3D posy2; y++) { + *((uint8_t *)d) =3D color; + d +=3D surface_stride(ds); + } + break; + case 2: + for (y =3D posy1; y <=3D posy2; y++) { + *((uint16_t *)d) =3D color; + d +=3D surface_stride(ds); + } + break; + case 4: + for (y =3D posy1; y <=3D posy2; y++) { + *((uint32_t *)d) =3D color; + d +=3D surface_stride(ds); + } + break; } } =20 @@ -164,28 +164,28 @@ static void jazz_led_update_display(void *opaque) if (s->state & REDRAW_SEGMENTS) { /* set colors according to bpp */ switch (surface_bits_per_pixel(surface)) { - case 8: - color_segment =3D rgb_to_pixel8(0xaa, 0xaa, 0xaa); - color_led =3D rgb_to_pixel8(0x00, 0xff, 0x00); - break; - case 15: - color_segment =3D rgb_to_pixel15(0xaa, 0xaa, 0xaa); - color_led =3D rgb_to_pixel15(0x00, 0xff, 0x00); - break; - case 16: - color_segment =3D rgb_to_pixel16(0xaa, 0xaa, 0xaa); - color_led =3D rgb_to_pixel16(0x00, 0xff, 0x00); - break; - case 24: - color_segment =3D rgb_to_pixel24(0xaa, 0xaa, 0xaa); - color_led =3D rgb_to_pixel24(0x00, 0xff, 0x00); - break; - case 32: - color_segment =3D rgb_to_pixel32(0xaa, 0xaa, 0xaa); - color_led =3D rgb_to_pixel32(0x00, 0xff, 0x00); - break; - default: - return; + case 8: + color_segment =3D rgb_to_pixel8(0xaa, 0xaa, 0xaa); + color_led =3D rgb_to_pixel8(0x00, 0xff, 0x00); + break; + case 15: + color_segment =3D rgb_to_pixel15(0xaa, 0xaa, 0xaa); + color_led =3D rgb_to_pixel15(0x00, 0xff, 0x00); + break; + case 16: + color_segment =3D rgb_to_pixel16(0xaa, 0xaa, 0xaa); + color_led =3D rgb_to_pixel16(0x00, 0xff, 0x00); + break; + case 24: + color_segment =3D rgb_to_pixel24(0xaa, 0xaa, 0xaa); + color_led =3D rgb_to_pixel24(0x00, 0xff, 0x00); + break; + case 32: + color_segment =3D rgb_to_pixel32(0xaa, 0xaa, 0xaa); + color_led =3D rgb_to_pixel32(0x00, 0xff, 0x00); + break; + default: + return; } =20 /* display segments */ @@ -205,8 +205,9 @@ static void jazz_led_update_display(void *opaque) (s->segments & 0x80) ? color_segment : 0); =20 /* display led */ - if (!(s->segments & 0x01)) + if (!(s->segments & 0x01)) { color_led =3D 0; /* black */ + } draw_horizontal_line(surface, 68, 50, 50, color_led); draw_horizontal_line(surface, 69, 49, 51, color_led); draw_horizontal_line(surface, 70, 48, 52, color_led); diff --git a/hw/dma/rc4030.c b/hw/dma/rc4030.c index d54e296..c4cf823 100644 --- a/hw/dma/rc4030.c +++ b/hw/dma/rc4030.c @@ -397,10 +397,11 @@ static void update_jazz_irq(rc4030State *s) =20 pending =3D s->isr_jazz & s->imr_jazz; =20 - if (pending !=3D 0) + if (pending !=3D 0) { qemu_irq_raise(s->jazz_bus_irq); - else + } else { qemu_irq_lower(s->jazz_bus_irq); + } } =20 static void rc4030_irq_jazz_request(void *opaque, int irq, int level) @@ -588,7 +589,8 @@ static const VMStateDescription vmstate_rc4030 =3D { } }; =20 -static void rc4030_do_dma(void *opaque, int n, uint8_t *buf, int len, int = is_write) +static void rc4030_do_dma(void *opaque, int n, uint8_t *buf, + int len, int is_write) { rc4030State *s =3D opaque; hwaddr dma_addr; @@ -643,8 +645,8 @@ static rc4030_dma *rc4030_allocate_dmas(void *opaque, i= nt n) struct rc4030DMAState *p; int i; =20 - s =3D (rc4030_dma *)g_malloc0(sizeof(rc4030_dma) * n); - p =3D (struct rc4030DMAState *)g_malloc0(sizeof(struct rc4030DMAState)= * n); + s =3D (rc4030_dma *)g_new0(rc4030_dma, n); + p =3D (struct rc4030DMAState *)g_new0(struct rc4030DMAState, n); for (i =3D 0; i < n; i++) { p->opaque =3D opaque; p->n =3D i; diff --git a/hw/mips/mips_jazz.c b/hw/mips/mips_jazz.c index d978bb6..ac4d7ac 100644 --- a/hw/mips/mips_jazz.c +++ b/hw/mips/mips_jazz.c @@ -52,8 +52,7 @@ #include "qemu/error-report.h" #include "qemu/help_option.h" =20 -enum jazz_model_e -{ +enum jazz_model_e { JAZZ_MAGNUM, JAZZ_PICA61, }; @@ -90,16 +89,20 @@ static const MemoryRegionOps rtc_ops =3D { static uint64_t dma_dummy_read(void *opaque, hwaddr addr, unsigned size) { - /* Nothing to do. That is only to ensure that - * the current DMA acknowledge cycle is completed. */ + /* + * Nothing to do. That is only to ensure that + * the current DMA acknowledge cycle is completed. + */ return 0xff; } =20 static void dma_dummy_write(void *opaque, hwaddr addr, uint64_t val, unsigned size) { - /* Nothing to do. That is only to ensure that - * the current DMA acknowledge cycle is completed. */ + /* + * Nothing to do. That is only to ensure that + * the current DMA acknowledge cycle is completed. + */ } =20 static const MemoryRegionOps dma_dummy_ops =3D { @@ -109,8 +112,8 @@ static const MemoryRegionOps dma_dummy_ops =3D { }; =20 #define MAGNUM_BIOS_SIZE_MAX 0x7e000 -#define MAGNUM_BIOS_SIZE (BIOS_SIZE < MAGNUM_BIOS_SIZE_MAX ? BIOS_SIZE : M= AGNUM_BIOS_SIZE_MAX) - +#define MAGNUM_BIOS_SIZE = \ + (BIOS_SIZE < MAGNUM_BIOS_SIZE_MAX ? BIOS_SIZE : MAGNUM_BIOS_SIZE_M= AX) static void (*real_do_transaction_failed)(CPUState *cpu, hwaddr physaddr, vaddr addr, unsigned size, MMUAccessType access_type, @@ -201,8 +204,9 @@ static void mips_jazz_init(MachineState *machine, memory_region_add_subregion(address_space, 0xfff00000LL, bios2); =20 /* load the BIOS image. */ - if (bios_name =3D=3D NULL) + if (bios_name =3D=3D NULL) { bios_name =3D BIOS_FILENAME; + } filename =3D qemu_find_file(QEMU_FILE_TYPE_BIOS, bios_name); if (filename) { bios_size =3D load_image_targphys(filename, 0xfff00000LL, @@ -229,7 +233,8 @@ static void mips_jazz_init(MachineState *machine, sysbus_mmio_get_region(sysbus, 0)); memory_region_add_subregion(address_space, 0xf0000000, sysbus_mmio_get_region(sysbus, 1)); - memory_region_init_io(dma_dummy, NULL, &dma_dummy_ops, NULL, "dummy_dm= a", 0x1000); + memory_region_init_io(dma_dummy, NULL, &dma_dummy_ops, + NULL, "dummy_dma", 0x1000); memory_region_add_subregion(address_space, 0x8000d000, dma_dummy); =20 /* ISA bus: IO space at 0x90000000, mem space at 0x91000000 */ @@ -276,8 +281,9 @@ static void mips_jazz_init(MachineState *machine, /* Network controller */ for (n =3D 0; n < nb_nics; n++) { nd =3D &nd_table[n]; - if (!nd->model) + if (!nd->model) { nd->model =3D g_strdup("dp83932"); + } if (strcmp(nd->model, "dp83932") =3D=3D 0) { qemu_check_nic_model(nd, "dp83932"); =20 @@ -338,12 +344,12 @@ static void mips_jazz_init(MachineState *machine, /* Serial ports */ if (serial_hd(0)) { serial_mm_init(address_space, 0x80006000, 0, - qdev_get_gpio_in(rc4030, 8), 8000000/16, + qdev_get_gpio_in(rc4030, 8), 8000000 / 16, serial_hd(0), DEVICE_NATIVE_ENDIAN); } if (serial_hd(1)) { serial_mm_init(address_space, 0x80007000, 0, - qdev_get_gpio_in(rc4030, 9), 8000000/16, + qdev_get_gpio_in(rc4030, 9), 8000000 / 16, serial_hd(1), DEVICE_NATIVE_ENDIAN); } =20 --=20 2.7.4 From nobody Tue May 14 16:29:43 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1576500518; cv=none; d=zohomail.com; s=zohoarc; b=OWWvDL/GZEdvjE+Tk+2StPRPyR+g33HCOL7ZAsNRi9zGh6NL0YvVGDYLEvS50oGG+Rdwtj0ALLoNAfcg4zWSINmRVevATHVufd0TXQktp3L6Bc0RHVbQbZlUiDmyJiiUIvfWayEWfATYyEJWbvG2Cb7wJ2BEAH2fQxzCabaHmdg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576500518; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=Abto7B0jJykFwobcn/E4ddtypMMenkOXyrjgwcPZOGY=; b=HVFSB72z9qWZUPYX1KJ9ZFVfp5q3TxAHkm3bLxN49wzc63lP8BhPWEBlWJlbGH71B77+wkockw5OxoNeWmeW5GrQXny54i3WVRDstMIFGo07sNIsijCxoGfz2WiExvPv4ugPM3kwp5bi1NHNbQw0PNY58CvN2P4dTQaghTf1EoM= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1576500518933190.35422183167123; Mon, 16 Dec 2019 04:48:38 -0800 (PST) Received: from localhost ([::1]:52902 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igpng-0003Rh-Ua for importer@patchew.org; Mon, 16 Dec 2019 07:48:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58765) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igpjO-0006kE-7g for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igpjL-0006uo-PA for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:09 -0500 Received: from mx2.rt-rk.com ([89.216.37.149]:42931 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1igpjL-0005ly-DA for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:07 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id B1F051A2062; Mon, 16 Dec 2019 13:43:01 +0100 (CET) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.14.106]) by mail.rt-rk.com (Postfix) with ESMTPSA id 8747B1A206A; Mon, 16 Dec 2019 13:43:01 +0100 (CET) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Subject: [PULL 02/11] mips: malta: Renovate coding style Date: Mon, 16 Dec 2019 13:42:43 +0100 Message-Id: <1576500172-11264-3-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1576500172-11264-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1576500172-11264-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 89.216.37.149 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Filip Bozuta The script checkpatch.pl located in scripts folder was used to detect all errors and warrnings in files: hw/mips/mips_malta.c hw/mips/gt64xxx_pci.c tests/acceptance/linux_ssh_mips_malta.py All these mips malta machine files were edited and all the errors and warrings generated by the checkpatch.pl script were corrected and then the script was ran again to make sure there are no more errors and warnings. Signed-off-by: Filip Bozuta Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Markovic Message-Id: <1575640687-20744-3-git-send-email-Filip.Bozuta@rt-rk.com> --- hw/mips/mips_malta.c | 172 ++++++++++++++++-----------= ---- tests/acceptance/linux_ssh_mips_malta.py | 6 +- 2 files changed, 91 insertions(+), 87 deletions(-) diff --git a/hw/mips/mips_malta.c b/hw/mips/mips_malta.c index 92e9ca5..783cd99 100644 --- a/hw/mips/mips_malta.c +++ b/hw/mips/mips_malta.c @@ -137,7 +137,8 @@ static void malta_fpga_update_display(void *opaque) */ =20 #if defined(DEBUG) -# define logout(fmt, ...) fprintf(stderr, "MALTA\t%-24s" fmt, __func__, #= # __VA_ARGS__) +# define logout(fmt, ...) \ + fprintf(stderr, "MALTA\t%-24s" fmt, __func__, ## __VA_ARGS__) #else # define logout(fmt, ...) ((void)0) #endif @@ -359,7 +360,6 @@ static uint64_t malta_fpga_read(void *opaque, hwaddr ad= dr, =20 /* SWITCH Register */ case 0x00200: - /* ori a3, a3, low(ram_low_size) */ val =3D 0x00000000; break; =20 @@ -569,7 +569,7 @@ static MaltaFPGAState *malta_fpga_init(MemoryRegion *ad= dress_space, MaltaFPGAState *s; Chardev *chr; =20 - s =3D (MaltaFPGAState *)g_malloc0(sizeof(MaltaFPGAState)); + s =3D g_new0(MaltaFPGAState, 1); =20 memory_region_init_io(&s->iomem, NULL, &malta_fpga_ops, s, "malta-fpga", 0x100000); @@ -844,24 +844,24 @@ static void write_bootloader(uint8_t *base, int64_t r= un_addr, /* Small bootloader */ p =3D (uint32_t *)base; =20 - stl_p(p++, 0x08000000 | /* j 0x1f= c00580 */ + stl_p(p++, 0x08000000 | /* j 0x1fc00580 */ ((run_addr + 0x580) & 0x0fffffff) >> 2); - stl_p(p++, 0x00000000); /* nop */ + stl_p(p++, 0x00000000); /* nop */ =20 /* YAMON service vector */ - stl_p(base + 0x500, run_addr + 0x0580); /* start: */ - stl_p(base + 0x504, run_addr + 0x083c); /* print_count: */ - stl_p(base + 0x520, run_addr + 0x0580); /* start: */ - stl_p(base + 0x52c, run_addr + 0x0800); /* flush_cache: */ - stl_p(base + 0x534, run_addr + 0x0808); /* print: */ - stl_p(base + 0x538, run_addr + 0x0800); /* reg_cpu_isr: */ - stl_p(base + 0x53c, run_addr + 0x0800); /* unred_cpu_isr: */ - stl_p(base + 0x540, run_addr + 0x0800); /* reg_ic_isr: */ - stl_p(base + 0x544, run_addr + 0x0800); /* unred_ic_isr: */ - stl_p(base + 0x548, run_addr + 0x0800); /* reg_esr: */ - stl_p(base + 0x54c, run_addr + 0x0800); /* unreg_esr: */ - stl_p(base + 0x550, run_addr + 0x0800); /* getchar: */ - stl_p(base + 0x554, run_addr + 0x0800); /* syscon_read: */ + stl_p(base + 0x500, run_addr + 0x0580); /* start: */ + stl_p(base + 0x504, run_addr + 0x083c); /* print_count: */ + stl_p(base + 0x520, run_addr + 0x0580); /* start: */ + stl_p(base + 0x52c, run_addr + 0x0800); /* flush_cache: */ + stl_p(base + 0x534, run_addr + 0x0808); /* print: */ + stl_p(base + 0x538, run_addr + 0x0800); /* reg_cpu_isr: */ + stl_p(base + 0x53c, run_addr + 0x0800); /* unred_cpu_isr: */ + stl_p(base + 0x540, run_addr + 0x0800); /* reg_ic_isr: */ + stl_p(base + 0x544, run_addr + 0x0800); /* unred_ic_isr: */ + stl_p(base + 0x548, run_addr + 0x0800); /* reg_esr: */ + stl_p(base + 0x54c, run_addr + 0x0800); /* unreg_esr: */ + stl_p(base + 0x550, run_addr + 0x0800); /* getchar: */ + stl_p(base + 0x554, run_addr + 0x0800); /* syscon_read: */ =20 =20 /* Second part of the bootloader */ @@ -869,9 +869,9 @@ static void write_bootloader(uint8_t *base, int64_t run= _addr, =20 if (semihosting_get_argc()) { /* Preserve a0 content as arguments have been passed */ - stl_p(p++, 0x00000000); /* nop */ + stl_p(p++, 0x00000000); /* nop */ } else { - stl_p(p++, 0x24040002); /* addiu a0, zero,= 2 */ + stl_p(p++, 0x24040002); /* addiu a0, zero, 2 */ } =20 /* lui sp, high(ENVP_ADDR) */ @@ -892,104 +892,106 @@ static void write_bootloader(uint8_t *base, int64_t= run_addr, stl_p(p++, 0x34e70000 | (loaderparams.ram_low_size & 0xffff)); =20 /* Load BAR registers as done by YAMON */ - stl_p(p++, 0x3c09b400); /* lui t1= , 0xb400 */ + stl_p(p++, 0x3c09b400); /* lui t1, 0xb400 */ =20 #ifdef TARGET_WORDS_BIGENDIAN - stl_p(p++, 0x3c08df00); /* lui t0= , 0xdf00 */ + stl_p(p++, 0x3c08df00); /* lui t0, 0xdf00 */ #else - stl_p(p++, 0x340800df); /* ori t0= , r0, 0x00df */ + stl_p(p++, 0x340800df); /* ori t0, r0, 0x00df */ #endif - stl_p(p++, 0xad280068); /* sw t0,= 0x0068(t1) */ + stl_p(p++, 0xad280068); /* sw t0, 0x0068(t1) */ =20 - stl_p(p++, 0x3c09bbe0); /* lui t1= , 0xbbe0 */ + stl_p(p++, 0x3c09bbe0); /* lui t1, 0xbbe0 */ =20 #ifdef TARGET_WORDS_BIGENDIAN - stl_p(p++, 0x3c08c000); /* lui t0= , 0xc000 */ + stl_p(p++, 0x3c08c000); /* lui t0, 0xc000 */ #else - stl_p(p++, 0x340800c0); /* ori t0= , r0, 0x00c0 */ + stl_p(p++, 0x340800c0); /* ori t0, r0, 0x00c0 */ #endif - stl_p(p++, 0xad280048); /* sw t0,= 0x0048(t1) */ + stl_p(p++, 0xad280048); /* sw t0, 0x0048(t1) */ #ifdef TARGET_WORDS_BIGENDIAN - stl_p(p++, 0x3c084000); /* lui t0= , 0x4000 */ + stl_p(p++, 0x3c084000); /* lui t0, 0x4000 */ #else - stl_p(p++, 0x34080040); /* ori t0= , r0, 0x0040 */ + stl_p(p++, 0x34080040); /* ori t0, r0, 0x0040 */ #endif - stl_p(p++, 0xad280050); /* sw t0,= 0x0050(t1) */ + stl_p(p++, 0xad280050); /* sw t0, 0x0050(t1) */ =20 #ifdef TARGET_WORDS_BIGENDIAN - stl_p(p++, 0x3c088000); /* lui t0= , 0x8000 */ + stl_p(p++, 0x3c088000); /* lui t0, 0x8000 */ #else - stl_p(p++, 0x34080080); /* ori t0= , r0, 0x0080 */ + stl_p(p++, 0x34080080); /* ori t0, r0, 0x0080 */ #endif - stl_p(p++, 0xad280058); /* sw t0,= 0x0058(t1) */ + stl_p(p++, 0xad280058); /* sw t0, 0x0058(t1) */ #ifdef TARGET_WORDS_BIGENDIAN - stl_p(p++, 0x3c083f00); /* lui t0= , 0x3f00 */ + stl_p(p++, 0x3c083f00); /* lui t0, 0x3f00 */ #else - stl_p(p++, 0x3408003f); /* ori t0= , r0, 0x003f */ + stl_p(p++, 0x3408003f); /* ori t0, r0, 0x003f */ #endif - stl_p(p++, 0xad280060); /* sw t0,= 0x0060(t1) */ + stl_p(p++, 0xad280060); /* sw t0, 0x0060(t1) */ =20 #ifdef TARGET_WORDS_BIGENDIAN - stl_p(p++, 0x3c08c100); /* lui t0= , 0xc100 */ + stl_p(p++, 0x3c08c100); /* lui t0, 0xc100 */ #else - stl_p(p++, 0x340800c1); /* ori t0= , r0, 0x00c1 */ + stl_p(p++, 0x340800c1); /* ori t0, r0, 0x00c1 */ #endif - stl_p(p++, 0xad280080); /* sw t0,= 0x0080(t1) */ + stl_p(p++, 0xad280080); /* sw t0, 0x0080(t1) */ #ifdef TARGET_WORDS_BIGENDIAN - stl_p(p++, 0x3c085e00); /* lui t0= , 0x5e00 */ + stl_p(p++, 0x3c085e00); /* lui t0, 0x5e00 */ #else - stl_p(p++, 0x3408005e); /* ori t0= , r0, 0x005e */ + stl_p(p++, 0x3408005e); /* ori t0, r0, 0x005e */ #endif - stl_p(p++, 0xad280088); /* sw t0,= 0x0088(t1) */ + stl_p(p++, 0xad280088); /* sw t0, 0x0088(t1) */ =20 /* Jump to kernel code */ - stl_p(p++, 0x3c1f0000 | ((kernel_entry >> 16) & 0xffff)); /* lui ra= , high(kernel_entry) */ - stl_p(p++, 0x37ff0000 | (kernel_entry & 0xffff)); /* ori ra= , ra, low(kernel_entry) */ - stl_p(p++, 0x03e00009); /* jalr r= a */ - stl_p(p++, 0x00000000); /* nop */ + stl_p(p++, 0x3c1f0000 | + ((kernel_entry >> 16) & 0xffff)); /* lui ra, high(kernel_entry)= */ + stl_p(p++, 0x37ff0000 | + (kernel_entry & 0xffff)); /* ori ra, ra, low(kernel_ent= ry) */ + stl_p(p++, 0x03e00009); /* jalr ra */ + stl_p(p++, 0x00000000); /* nop */ =20 /* YAMON subroutines */ p =3D (uint32_t *) (base + 0x800); - stl_p(p++, 0x03e00009); /* jalr ra= */ - stl_p(p++, 0x24020000); /* li v0,0= */ + stl_p(p++, 0x03e00009); /* jalr ra */ + stl_p(p++, 0x24020000); /* li v0,0 */ /* 808 YAMON print */ - stl_p(p++, 0x03e06821); /* move t5= ,ra */ - stl_p(p++, 0x00805821); /* move t3= ,a0 */ - stl_p(p++, 0x00a05021); /* move t2= ,a1 */ - stl_p(p++, 0x91440000); /* lbu a0,= 0(t2) */ - stl_p(p++, 0x254a0001); /* addiu t= 2,t2,1 */ - stl_p(p++, 0x10800005); /* beqz a0= ,834 */ - stl_p(p++, 0x00000000); /* nop */ - stl_p(p++, 0x0ff0021c); /* jal 870= */ - stl_p(p++, 0x00000000); /* nop */ - stl_p(p++, 0x1000fff9); /* b 814 */ - stl_p(p++, 0x00000000); /* nop */ - stl_p(p++, 0x01a00009); /* jalr t5= */ - stl_p(p++, 0x01602021); /* move a0= ,t3 */ + stl_p(p++, 0x03e06821); /* move t5,ra */ + stl_p(p++, 0x00805821); /* move t3,a0 */ + stl_p(p++, 0x00a05021); /* move t2,a1 */ + stl_p(p++, 0x91440000); /* lbu a0,0(t2) */ + stl_p(p++, 0x254a0001); /* addiu t2,t2,1 */ + stl_p(p++, 0x10800005); /* beqz a0,834 */ + stl_p(p++, 0x00000000); /* nop */ + stl_p(p++, 0x0ff0021c); /* jal 870 */ + stl_p(p++, 0x00000000); /* nop */ + stl_p(p++, 0x1000fff9); /* b 814 */ + stl_p(p++, 0x00000000); /* nop */ + stl_p(p++, 0x01a00009); /* jalr t5 */ + stl_p(p++, 0x01602021); /* move a0,t3 */ /* 0x83c YAMON print_count */ - stl_p(p++, 0x03e06821); /* move t5= ,ra */ - stl_p(p++, 0x00805821); /* move t3= ,a0 */ - stl_p(p++, 0x00a05021); /* move t2= ,a1 */ - stl_p(p++, 0x00c06021); /* move t4= ,a2 */ - stl_p(p++, 0x91440000); /* lbu a0,= 0(t2) */ - stl_p(p++, 0x0ff0021c); /* jal 870= */ - stl_p(p++, 0x00000000); /* nop */ - stl_p(p++, 0x254a0001); /* addiu t= 2,t2,1 */ - stl_p(p++, 0x258cffff); /* addiu t= 4,t4,-1 */ - stl_p(p++, 0x1580fffa); /* bnez t4= ,84c */ - stl_p(p++, 0x00000000); /* nop */ - stl_p(p++, 0x01a00009); /* jalr t5= */ - stl_p(p++, 0x01602021); /* move a0= ,t3 */ + stl_p(p++, 0x03e06821); /* move t5,ra */ + stl_p(p++, 0x00805821); /* move t3,a0 */ + stl_p(p++, 0x00a05021); /* move t2,a1 */ + stl_p(p++, 0x00c06021); /* move t4,a2 */ + stl_p(p++, 0x91440000); /* lbu a0,0(t2) */ + stl_p(p++, 0x0ff0021c); /* jal 870 */ + stl_p(p++, 0x00000000); /* nop */ + stl_p(p++, 0x254a0001); /* addiu t2,t2,1 */ + stl_p(p++, 0x258cffff); /* addiu t4,t4,-1 */ + stl_p(p++, 0x1580fffa); /* bnez t4,84c */ + stl_p(p++, 0x00000000); /* nop */ + stl_p(p++, 0x01a00009); /* jalr t5 */ + stl_p(p++, 0x01602021); /* move a0,t3 */ /* 0x870 */ - stl_p(p++, 0x3c08b800); /* lui t0,= 0xb400 */ - stl_p(p++, 0x350803f8); /* ori t0,= t0,0x3f8 */ - stl_p(p++, 0x91090005); /* lbu t1,= 5(t0) */ - stl_p(p++, 0x00000000); /* nop */ - stl_p(p++, 0x31290040); /* andi t1= ,t1,0x40 */ - stl_p(p++, 0x1120fffc); /* beqz t1= ,878 */ - stl_p(p++, 0x00000000); /* nop */ - stl_p(p++, 0x03e00009); /* jalr ra= */ - stl_p(p++, 0xa1040000); /* sb a0,0= (t0) */ + stl_p(p++, 0x3c08b800); /* lui t0,0xb400 */ + stl_p(p++, 0x350803f8); /* ori t0,t0,0x3f8 */ + stl_p(p++, 0x91090005); /* lbu t1,5(t0) */ + stl_p(p++, 0x00000000); /* nop */ + stl_p(p++, 0x31290040); /* andi t1,t1,0x40 */ + stl_p(p++, 0x1120fffc); /* beqz t1,878 */ + stl_p(p++, 0x00000000); /* nop */ + stl_p(p++, 0x03e00009); /* jalr ra */ + stl_p(p++, 0xa1040000); /* sb a0,0(t0) */ =20 } =20 @@ -1242,7 +1244,7 @@ void mips_malta_init(MachineState *machine) /* * The whole address space decoded by the GT-64120A doesn't generate * exception when accessing invalid memory. Create an empty slot to - * emulate this feature.\ + * emulate this feature. */ empty_slot_init(0, 0x20000000); =20 diff --git a/tests/acceptance/linux_ssh_mips_malta.py b/tests/acceptance/li= nux_ssh_mips_malta.py index fc13f9e..4db18de 100644 --- a/tests/acceptance/linux_ssh_mips_malta.py +++ b/tests/acceptance/linux_ssh_mips_malta.py @@ -99,10 +99,12 @@ class LinuxSSH(Test): def ssh_command(self, command, is_root=3DTrue): self.ssh_logger.info(command) result =3D self.ssh_session.cmd(command) - stdout_lines =3D [line.rstrip() for line in result.stdout_text.spl= itlines()] + stdout_lines =3D [line.rstrip() for line + in result.stdout_text.splitlines()] for line in stdout_lines: self.ssh_logger.info(line) - stderr_lines =3D [line.rstrip() for line in result.stderr_text.spl= itlines()] + stderr_lines =3D [line.rstrip() for line + in result.stderr_text.splitlines()] for line in stderr_lines: self.ssh_logger.warning(line) return stdout_lines, stderr_lines --=20 2.7.4 From nobody Tue May 14 16:29:43 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1576500374; cv=none; d=zohomail.com; s=zohoarc; b=CQ+dAWJfl36A5EeXSjSzimUGf+1wuh29LzG1po20ApfgIJUYtuBWvizw3Dy/IfiJ973uWruGJFcIaXR7tQiel9h0rljp8DxbuUWbkWVw7XCPKlSZR8ObYaV9OAuALO0luTU8fMrfDxtu9WXAK/tgYweCxAIiNNA7TNH5N+YwIfE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576500374; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=FazOL3Tnz501/Dn2GEdAikUib1BksfPCwxIgzYg9kMI=; b=iSEbDpgXMu0+m/PsQoLEkwBUho7cDnrRZ/hmWIfC1uG9cNUkHlDj7R9zCtQIgCIcddEOB8gotdTUqaUlqv6yefJ3n5Z1+0+9GMX+mJRJVZ2ABe+cZ7yZz6Oz+UZ3laAwUXgWeReH08VamDS5uxwQmfhWh7V05J+LOE9dOMUEONU= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1576500374197653.3930450410692; Mon, 16 Dec 2019 04:46:14 -0800 (PST) Received: from localhost ([::1]:52878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igplL-00009x-Ub for importer@patchew.org; Mon, 16 Dec 2019 07:46:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58773) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igpjO-0006kG-8n for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igpjL-0006ut-PH for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:09 -0500 Received: from mx2.rt-rk.com ([89.216.37.149]:42960 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1igpjL-0005mK-Dw for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:07 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id BC2F31A20E2; Mon, 16 Dec 2019 13:43:01 +0100 (CET) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.14.106]) by mail.rt-rk.com (Postfix) with ESMTPSA id 91ABD1A20C2; Mon, 16 Dec 2019 13:43:01 +0100 (CET) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Subject: [PULL 03/11] mips: mipssim: Renovate coding style Date: Mon, 16 Dec 2019 13:42:44 +0100 Message-Id: <1576500172-11264-4-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1576500172-11264-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1576500172-11264-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 89.216.37.149 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Filip Bozuta The script checkpatch.pl located in scripts folder was used to detect all errors and warrnings in files: hw/mips/mips_mipssim.c hw/net/mipsnet.c All these mips mipssim machine files were edited and all the errors and warrings generated by the checkpatch.pl script were corrected and then the script was ran again to make sure there are no more errors and warnings. Signed-off-by: Filip Bozuta Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Markovic Message-Id: <1575640687-20744-4-git-send-email-Filip.Bozuta@rt-rk.com> --- hw/net/mipsnet.c | 42 +++++++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/hw/net/mipsnet.c b/hw/net/mipsnet.c index f7ae1ce..380ff5a 100644 --- a/hw/net/mipsnet.c +++ b/hw/net/mipsnet.c @@ -9,19 +9,19 @@ =20 /* MIPSnet register offsets */ =20 -#define MIPSNET_DEV_ID 0x00 -#define MIPSNET_BUSY 0x08 -#define MIPSNET_RX_DATA_COUNT 0x0c -#define MIPSNET_TX_DATA_COUNT 0x10 -#define MIPSNET_INT_CTL 0x14 -# define MIPSNET_INTCTL_TXDONE 0x00000001 -# define MIPSNET_INTCTL_RXDONE 0x00000002 -# define MIPSNET_INTCTL_TESTBIT 0x80000000 -#define MIPSNET_INTERRUPT_INFO 0x18 -#define MIPSNET_RX_DATA_BUFFER 0x1c -#define MIPSNET_TX_DATA_BUFFER 0x20 - -#define MAX_ETH_FRAME_SIZE 1514 +#define MIPSNET_DEV_ID 0x00 +#define MIPSNET_BUSY 0x08 +#define MIPSNET_RX_DATA_COUNT 0x0c +#define MIPSNET_TX_DATA_COUNT 0x10 +#define MIPSNET_INT_CTL 0x14 +# define MIPSNET_INTCTL_TXDONE 0x00000001 +# define MIPSNET_INTCTL_RXDONE 0x00000002 +# define MIPSNET_INTCTL_TESTBIT 0x80000000 +#define MIPSNET_INTERRUPT_INFO 0x18 +#define MIPSNET_RX_DATA_BUFFER 0x1c +#define MIPSNET_TX_DATA_BUFFER 0x20 + +#define MAX_ETH_FRAME_SIZE 1514 =20 #define TYPE_MIPS_NET "mipsnet" #define MIPS_NET(obj) OBJECT_CHECK(MIPSnetState, (obj), TYPE_MIPS_NET) @@ -64,8 +64,9 @@ static void mipsnet_update_irq(MIPSnetState *s) =20 static int mipsnet_buffer_full(MIPSnetState *s) { - if (s->rx_count >=3D MAX_ETH_FRAME_SIZE) + if (s->rx_count >=3D MAX_ETH_FRAME_SIZE) { return 1; + } return 0; } =20 @@ -73,18 +74,21 @@ static int mipsnet_can_receive(NetClientState *nc) { MIPSnetState *s =3D qemu_get_nic_opaque(nc); =20 - if (s->busy) + if (s->busy) { return 0; + } return !mipsnet_buffer_full(s); } =20 -static ssize_t mipsnet_receive(NetClientState *nc, const uint8_t *buf, siz= e_t size) +static ssize_t mipsnet_receive(NetClientState *nc, + const uint8_t *buf, size_t size) { MIPSnetState *s =3D qemu_get_nic_opaque(nc); =20 trace_mipsnet_receive(size); - if (!mipsnet_can_receive(nc)) + if (!mipsnet_can_receive(nc)) { return 0; + } =20 if (size >=3D sizeof(s->rx_buffer)) { return 0; @@ -115,10 +119,10 @@ static uint64_t mipsnet_ioport_read(void *opaque, hwa= ddr addr, addr &=3D 0x3f; switch (addr) { case MIPSNET_DEV_ID: - ret =3D be32_to_cpu(0x4d495053); /* MIPS */ + ret =3D be32_to_cpu(0x4d495053); /* MIPS */ break; case MIPSNET_DEV_ID + 4: - ret =3D be32_to_cpu(0x4e455430); /* NET0 */ + ret =3D be32_to_cpu(0x4e455430); /* NET0 */ break; case MIPSNET_BUSY: ret =3D s->busy; --=20 2.7.4 From nobody Tue May 14 16:29:43 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1576500513; cv=none; d=zohomail.com; s=zohoarc; b=KGKDihjMt90djB+pwLCa0OT9tLpWB/g5+BvnRRnX6p4+uTV1VJ+QECfYiXbO/GRim4PUJwIBjVvQ11fLiCjlByWn0hc9vqzzFJ7lkYHlHvtaIGlo9REqpoyZFPzY8GXvTrbAUKjY8eSlz06bQ57drT+gwHZvy9oIwHasQY7mAD8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576500513; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=oB4p2UcojUdceCyjaAf6tk7fgu8Z1g4huR4KHhLMRlA=; b=V//4OomFmq2KAfmRvwBUacxWgzPCoWYhUUETvhzkxqIOUj1mNrAdYPaLz0+BE8K4UdhNlizYPWcbQ57Yg0nTrxFPh7Aar9vDHhX9fGkSspJy32xhfYeCHP7ycz/74SnlqFGLzRKo1lmVdAkBlRz9kmdlvg4xFJ2S7zVL1MvBMnc= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1576500513576957.7091973766562; Mon, 16 Dec 2019 04:48:33 -0800 (PST) Received: from localhost ([::1]:52900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igpnb-0003MR-P4 for importer@patchew.org; Mon, 16 Dec 2019 07:48:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58779) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igpjO-0006kH-9G for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igpjL-0006v8-Q7 for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:10 -0500 Received: from mx2.rt-rk.com ([89.216.37.149]:42967 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1igpjL-0005mY-FD for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:07 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id C39061A2107; Mon, 16 Dec 2019 13:43:01 +0100 (CET) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.14.106]) by mail.rt-rk.com (Postfix) with ESMTPSA id 981ED1A1D72; Mon, 16 Dec 2019 13:43:01 +0100 (CET) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Subject: [PULL 04/11] mips: r4000: Renovate coding style Date: Mon, 16 Dec 2019 13:42:45 +0100 Message-Id: <1576500172-11264-5-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1576500172-11264-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1576500172-11264-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 89.216.37.149 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Filip Bozuta The script checkpatch.pl located in scripts folder was used to detect all errors and warrnings in file: hw/mips/mips_r4k.c This mips r4000 machine file was edited and all the errors and warrings generated by the checkpatch.pl script were corrected and then the script was ran again to make sure there are no more errors and warnings. Signed-off-by: Filip Bozuta Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Markovic Message-Id: <1575640687-20744-5-git-send-email-Filip.Bozuta@rt-rk.com> --- hw/mips/mips_r4k.c | 55 +++++++++++++++++++++++++++++++++-----------------= ---- 1 file changed, 34 insertions(+), 21 deletions(-) diff --git a/hw/mips/mips_r4k.c b/hw/mips/mips_r4k.c index 7002423..d1f5d6b 100644 --- a/hw/mips/mips_r4k.c +++ b/hw/mips/mips_r4k.c @@ -6,7 +6,7 @@ * ISA memory at the 0x10000000 (PHYS, 16Mb in size). * All peripherial devices are attached to this "bus" with * the standard PC ISA addresses. -*/ + */ =20 #include "qemu/osdep.h" #include "qemu/units.h" @@ -54,17 +54,18 @@ static struct _loaderparams { const char *initrd_filename; } loaderparams; =20 -static void mips_qemu_write (void *opaque, hwaddr addr, - uint64_t val, unsigned size) +static void mips_qemu_write(void *opaque, hwaddr addr, + uint64_t val, unsigned size) { - if ((addr & 0xffff) =3D=3D 0 && val =3D=3D 42) + if ((addr & 0xffff) =3D=3D 0 && val =3D=3D 42) { qemu_system_reset_request(SHUTDOWN_CAUSE_GUEST_RESET); - else if ((addr & 0xffff) =3D=3D 4 && val =3D=3D 42) + } else if ((addr & 0xffff) =3D=3D 4 && val =3D=3D 42) { qemu_system_shutdown_request(SHUTDOWN_CAUSE_GUEST_SHUTDOWN); + } } =20 -static uint64_t mips_qemu_read (void *opaque, hwaddr addr, - unsigned size) +static uint64_t mips_qemu_read(void *opaque, hwaddr addr, + unsigned size) { return 0; } @@ -100,8 +101,9 @@ static int64_t load_kernel(void) (uint64_t *)&kernel_high, big_endian, EM_MIPS, 1, 0); if (kernel_size >=3D 0) { - if ((entry & ~0x7fffffffULL) =3D=3D 0x80000000) + if ((entry & ~0x7fffffffULL) =3D=3D 0x80000000) { entry =3D (int32_t)entry; + } } else { error_report("could not load kernel '%s': %s", loaderparams.kernel_filename, @@ -113,9 +115,10 @@ static int64_t load_kernel(void) initrd_size =3D 0; initrd_offset =3D 0; if (loaderparams.initrd_filename) { - initrd_size =3D get_image_size (loaderparams.initrd_filename); + initrd_size =3D get_image_size(loaderparams.initrd_filename); if (initrd_size > 0) { - initrd_offset =3D (kernel_high + ~INITRD_PAGE_MASK) & INITRD_P= AGE_MASK; + initrd_offset =3D (kernel_high + ~INITRD_PAGE_MASK) & + INITRD_PAGE_MASK; if (initrd_offset + initrd_size > ram_size) { error_report("memory too small for initial ram disk '%s'", loaderparams.initrd_filename); @@ -139,11 +142,13 @@ static int64_t load_kernel(void) params_buf[1] =3D tswap32(0x12345678); =20 if (initrd_size > 0) { - snprintf((char *)params_buf + 8, 256, "rd_start=3D0x%" PRIx64 " rd= _size=3D%" PRId64 " %s", + snprintf((char *)params_buf + 8, 256, + "rd_start=3D0x%" PRIx64 " rd_size=3D%" PRId64 " %s", cpu_mips_phys_to_kseg0(NULL, initrd_offset), initrd_size, loaderparams.kernel_cmdline); } else { - snprintf((char *)params_buf + 8, 256, "%s", loaderparams.kernel_cm= dline); + snprintf((char *)params_buf + 8, 256, + "%s", loaderparams.kernel_cmdline); } =20 rom_add_blob_fixed("params", params_buf, params_size, @@ -207,15 +212,21 @@ void mips_r4k_init(MachineState *machine) =20 memory_region_add_subregion(address_space_mem, 0, ram); =20 - memory_region_init_io(iomem, NULL, &mips_qemu_ops, NULL, "mips-qemu", = 0x10000); + memory_region_init_io(iomem, NULL, &mips_qemu_ops, + NULL, "mips-qemu", 0x10000); + memory_region_add_subregion(address_space_mem, 0x1fbf0000, iomem); =20 - /* Try to load a BIOS image. If this fails, we continue regardless, - but initialize the hardware ourselves. When a kernel gets - preloaded we also initialize the hardware, since the BIOS wasn't - run. */ - if (bios_name =3D=3D NULL) + /* + * Try to load a BIOS image. If this fails, we continue regardless, + * but initialize the hardware ourselves. When a kernel gets + * preloaded we also initialize the hardware, since the BIOS wasn't + * run. + */ + + if (bios_name =3D=3D NULL) { bios_name =3D BIOS_FILENAME; + } filename =3D qemu_find_file(QEMU_FILE_TYPE_BIOS, bios_name); if (filename) { bios_size =3D get_image_size(filename); @@ -227,6 +238,7 @@ void mips_r4k_init(MachineState *machine) #else be =3D 0; #endif + dinfo =3D drive_get(IF_PFLASH, 0, 0); if ((bios_size > 0) && (bios_size <=3D BIOS_SIZE)) { bios =3D g_new(MemoryRegion, 1); memory_region_init_ram(bios, NULL, "mips_r4k.bios", BIOS_SIZE, @@ -235,7 +247,7 @@ void mips_r4k_init(MachineState *machine) memory_region_add_subregion(get_system_memory(), 0x1fc00000, bios); =20 load_image_targphys(filename, 0x1fc00000, BIOS_SIZE); - } else if ((dinfo =3D drive_get(IF_PFLASH, 0, 0)) !=3D NULL) { + } else if (dinfo !=3D NULL) { uint32_t mips_rom =3D 0x00400000; if (!pflash_cfi01_register(0x1fc00000, "mips_r4k.bios", mips_rom, blk_by_legacy_dinfo(dinfo), @@ -280,11 +292,12 @@ void mips_r4k_init(MachineState *machine) =20 isa_vga_init(isa_bus); =20 - if (nd_table[0].used) + if (nd_table[0].used) { isa_ne2000_init(isa_bus, 0x300, 9, &nd_table[0]); + } =20 ide_drive_get(hd, ARRAY_SIZE(hd)); - for(i =3D 0; i < MAX_IDE_BUS; i++) + for (i =3D 0; i < MAX_IDE_BUS; i++) isa_ide_init(isa_bus, ide_iobase[i], ide_iobase2[i], ide_irq[i], hd[MAX_IDE_DEVS * i], hd[MAX_IDE_DEVS * i + 1]); --=20 2.7.4 From nobody Tue May 14 16:29:43 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1576500371; cv=none; d=zohomail.com; s=zohoarc; b=CHXInTKYmvQEODInchHl4WZAdj6IgXV3VkN6chD6MD0ZH6cUN0I/Axl1aIIKMjxUBcR32+YmW2ll4NtbJ1GuoK3M1izlzUHNCHX2KO/aIa8GMIWLzMWzC3JtpvkhpNBE+SXfZONx0ZrBNPgNpoXux6k5GOC6bsS6iyfUb3qBJdw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576500371; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=wbgPFx6scIMvASeY2WK68pS8zF0Idndy1M7w+nfCpog=; b=b7GtmB63FioRlcAabP0nlao2qr23VcncNr56cCFEgDcDKWrJZNrB+aLsj1/7MguwMxHaj+fdcGtoYl8x2eZgG2D9YfjQQJiLTnIG2XLrdtnrscaxc/mOiarRvSMGfr8EL77UTu6fwr6NBLaK3MvA/PDQeuLIqidPhx+YXVgZRdQ= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1576500371548759.3690262471832; Mon, 16 Dec 2019 04:46:11 -0800 (PST) Received: from localhost ([::1]:52876 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igplJ-00006g-O9 for importer@patchew.org; Mon, 16 Dec 2019 07:46:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58822) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igpjP-0006kY-PD for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igpjO-0006wD-0x for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:11 -0500 Received: from mx2.rt-rk.com ([89.216.37.149]:57768 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1igpjN-0006vE-MQ for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:09 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id DF0261A2111; Mon, 16 Dec 2019 13:43:01 +0100 (CET) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.14.106]) by mail.rt-rk.com (Postfix) with ESMTPSA id A27EF1A20EE; Mon, 16 Dec 2019 13:43:01 +0100 (CET) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Subject: [PULL 05/11] mips: fulong 2e: Renovate coding style Date: Mon, 16 Dec 2019 13:42:46 +0100 Message-Id: <1576500172-11264-6-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1576500172-11264-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1576500172-11264-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 89.216.37.149 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Filip Bozuta The script checkpatch.pl located in scripts folder was used to detect all errors and warrnings in files: hw/mips/mips_fulong2e.c hw/isa/vt82c686.c hw/pci-host/bonito.c include/hw/isa/vt82c686.h These mips Fulong 2E machine files were edited and all the errors and warrings generated by the checkpatch.pl script were corrected and then the script was ran again to make sure there are no more errors and warnings. Signed-off-by: Filip Bozuta Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Markovic Message-Id: <1575640687-20744-6-git-send-email-Filip.Bozuta@rt-rk.com> --- hw/isa/vt82c686.c | 23 ++++++++++---------- hw/pci-host/bonito.c | 60 +++++++++++++++++++++++++++++-------------------= ---- 2 files changed, 45 insertions(+), 38 deletions(-) diff --git a/hw/isa/vt82c686.c b/hw/isa/vt82c686.c index 616f67f..f828708 100644 --- a/hw/isa/vt82c686.c +++ b/hw/isa/vt82c686.c @@ -27,7 +27,7 @@ #include "qemu/timer.h" #include "exec/address-spaces.h" =20 -//#define DEBUG_VT82C686B +/* #define DEBUG_VT82C686B */ =20 #ifdef DEBUG_VT82C686B #define DPRINTF(fmt, ...) fprintf(stderr, "%s: " fmt, __func__, ##__VA_ARG= S__) @@ -35,8 +35,7 @@ #define DPRINTF(fmt, ...) #endif =20 -typedef struct SuperIOConfig -{ +typedef struct SuperIOConfig { uint8_t config[0x100]; uint8_t index; uint8_t data; @@ -102,7 +101,7 @@ static uint64_t superio_ioport_readb(void *opaque, hwad= dr addr, unsigned size) SuperIOConfig *superio_conf =3D opaque; =20 DPRINTF("superio_ioport_readb address 0x%x\n", addr); - return (superio_conf->config[superio_conf->index]); + return superio_conf->config[superio_conf->index]; } =20 static const MemoryRegionOps superio_ops =3D { @@ -143,7 +142,7 @@ static void vt82c686b_isa_reset(DeviceState *dev) } =20 /* write config pci function0 registers. PCI-ISA bridge */ -static void vt82c686b_write_config(PCIDevice * d, uint32_t address, +static void vt82c686b_write_config(PCIDevice *d, uint32_t address, uint32_t val, int len) { VT82C686BState *vt686 =3D VT82C686B_DEVICE(d); @@ -365,7 +364,7 @@ static void vt82c686b_pm_realize(PCIDevice *dev, Error = **errp) pci_set_long(pci_conf + 0x48, 0x00000001); =20 /* SMB ports:0xeee0~0xeeef */ - s->smb_io_base =3D((s->smb_io_base & 0xfff0) + 0x0); + s->smb_io_base =3D ((s->smb_io_base & 0xfff0) + 0x0); pci_conf[0x90] =3D s->smb_io_base | 1; pci_conf[0x91] =3D s->smb_io_base >> 8; pci_conf[0xd2] =3D 0x90; @@ -462,16 +461,18 @@ static void vt82c686b_realize(PCIDevice *d, Error **e= rrp) =20 wmask =3D d->wmask; for (i =3D 0x00; i < 0xff; i++) { - if (i<=3D0x03 || (i>=3D0x08 && i<=3D0x3f)) { - wmask[i] =3D 0x00; - } + if (i <=3D 0x03 || (i >=3D 0x08 && i <=3D 0x3f)) { + wmask[i] =3D 0x00; + } } =20 memory_region_init_io(&vt82c->superio, OBJECT(d), &superio_ops, &vt82c->superio_conf, "superio", 2); memory_region_set_enabled(&vt82c->superio, false); - /* The floppy also uses 0x3f0 and 0x3f1. - * But we do not emulate a floppy, so just set it here. */ + /* + * The floppy also uses 0x3f0 and 0x3f1. + * But we do not emulate a floppy, so just set it here. + */ memory_region_add_subregion(isa_bus->address_space_io, 0x3f0, &vt82c->superio); } diff --git a/hw/pci-host/bonito.c b/hw/pci-host/bonito.c index ceee463..4692d41 100644 --- a/hw/pci-host/bonito.c +++ b/hw/pci-host/bonito.c @@ -14,7 +14,8 @@ * fulong 2e mini pc has a bonito north bridge. */ =20 -/* what is the meaning of devfn in qemu and IDSEL in bonito northbridge? +/* + * what is the meaning of devfn in qemu and IDSEL in bonito northbridge? * * devfn pci_slot<<3 + funno * one pci bus can have 32 devices and each device can have 8 functions. @@ -49,7 +50,7 @@ #include "sysemu/runstate.h" #include "exec/address-spaces.h" =20 -//#define DEBUG_BONITO +/* #define DEBUG_BONITO */ =20 #ifdef DEBUG_BONITO #define DPRINTF(fmt, ...) fprintf(stderr, "%s: " fmt, __func__, ##__VA_ARG= S__) @@ -60,45 +61,45 @@ /* from linux soure code. include/asm-mips/mips-boards/bonito64.h*/ #define BONITO_BOOT_BASE 0x1fc00000 #define BONITO_BOOT_SIZE 0x00100000 -#define BONITO_BOOT_TOP (BONITO_BOOT_BASE+BONITO_BOOT_SIZE-1) +#define BONITO_BOOT_TOP (BONITO_BOOT_BASE + BONITO_BOOT_SIZE - 1) #define BONITO_FLASH_BASE 0x1c000000 #define BONITO_FLASH_SIZE 0x03000000 -#define BONITO_FLASH_TOP (BONITO_FLASH_BASE+BONITO_FLASH_SIZE-1) +#define BONITO_FLASH_TOP (BONITO_FLASH_BASE + BONITO_FLASH_SIZE - 1) #define BONITO_SOCKET_BASE 0x1f800000 #define BONITO_SOCKET_SIZE 0x00400000 -#define BONITO_SOCKET_TOP (BONITO_SOCKET_BASE+BONITO_SOCKET_SIZE-1) +#define BONITO_SOCKET_TOP (BONITO_SOCKET_BASE + BONITO_SOCKET_SIZE -= 1) #define BONITO_REG_BASE 0x1fe00000 #define BONITO_REG_SIZE 0x00040000 -#define BONITO_REG_TOP (BONITO_REG_BASE+BONITO_REG_SIZE-1) +#define BONITO_REG_TOP (BONITO_REG_BASE + BONITO_REG_SIZE - 1) #define BONITO_DEV_BASE 0x1ff00000 #define BONITO_DEV_SIZE 0x00100000 -#define BONITO_DEV_TOP (BONITO_DEV_BASE+BONITO_DEV_SIZE-1) +#define BONITO_DEV_TOP (BONITO_DEV_BASE + BONITO_DEV_SIZE - 1) #define BONITO_PCILO_BASE 0x10000000 #define BONITO_PCILO_BASE_VA 0xb0000000 #define BONITO_PCILO_SIZE 0x0c000000 -#define BONITO_PCILO_TOP (BONITO_PCILO_BASE+BONITO_PCILO_SIZE-1) +#define BONITO_PCILO_TOP (BONITO_PCILO_BASE + BONITO_PCILO_SIZE - 1) #define BONITO_PCILO0_BASE 0x10000000 #define BONITO_PCILO1_BASE 0x14000000 #define BONITO_PCILO2_BASE 0x18000000 #define BONITO_PCIHI_BASE 0x20000000 #define BONITO_PCIHI_SIZE 0x20000000 -#define BONITO_PCIHI_TOP (BONITO_PCIHI_BASE+BONITO_PCIHI_SIZE-1) +#define BONITO_PCIHI_TOP (BONITO_PCIHI_BASE + BONITO_PCIHI_SIZE - 1) #define BONITO_PCIIO_BASE 0x1fd00000 #define BONITO_PCIIO_BASE_VA 0xbfd00000 #define BONITO_PCIIO_SIZE 0x00010000 -#define BONITO_PCIIO_TOP (BONITO_PCIIO_BASE+BONITO_PCIIO_SIZE-1) +#define BONITO_PCIIO_TOP (BONITO_PCIIO_BASE + BONITO_PCIIO_SIZE - 1) #define BONITO_PCICFG_BASE 0x1fe80000 #define BONITO_PCICFG_SIZE 0x00080000 -#define BONITO_PCICFG_TOP (BONITO_PCICFG_BASE+BONITO_PCICFG_SIZE-1) +#define BONITO_PCICFG_TOP (BONITO_PCICFG_BASE + BONITO_PCICFG_SIZE -= 1) =20 =20 #define BONITO_PCICONFIGBASE 0x00 #define BONITO_REGBASE 0x100 =20 -#define BONITO_PCICONFIG_BASE (BONITO_PCICONFIGBASE+BONITO_REG_BASE) +#define BONITO_PCICONFIG_BASE (BONITO_PCICONFIGBASE + BONITO_REG_BASE) #define BONITO_PCICONFIG_SIZE (0x100) =20 -#define BONITO_INTERNAL_REG_BASE (BONITO_REGBASE+BONITO_REG_BASE) +#define BONITO_INTERNAL_REG_BASE (BONITO_REGBASE + BONITO_REG_BASE) #define BONITO_INTERNAL_REG_SIZE (0x70) =20 #define BONITO_SPCICONFIG_BASE (BONITO_PCICFG_BASE) @@ -111,7 +112,7 @@ =20 #define BONITO_BONPONCFG (0x00 >> 2) /* 0x100 */ #define BONITO_BONGENCFG_OFFSET 0x4 -#define BONITO_BONGENCFG (BONITO_BONGENCFG_OFFSET>>2) /*0x104 */ +#define BONITO_BONGENCFG (BONITO_BONGENCFG_OFFSET >> 2) /*0x104 */ =20 /* 2. IO & IDE configuration */ #define BONITO_IODEVCFG (0x08 >> 2) /* 0x108 */ @@ -177,15 +178,15 @@ /* idsel BIT =3D pci slot number +12 */ #define PCI_SLOT_BASE 12 #define PCI_IDSEL_VIA686B_BIT (17) -#define PCI_IDSEL_VIA686B (1<> 2; =20 - DPRINTF("bonito_writel "TARGET_FMT_plx" val %x saddr %x\n", addr, val,= saddr); + DPRINTF("bonito_writel "TARGET_FMT_plx" val %x saddr %x\n", + addr, val, saddr); switch (saddr) { case BONITO_BONPONCFG: case BONITO_IODEVCFG: @@ -363,7 +365,7 @@ static uint64_t bonito_ldma_readl(void *opaque, hwaddr = addr, return 0; } =20 - val =3D ((uint32_t *)(&s->bonldma))[addr/sizeof(uint32_t)]; + val =3D ((uint32_t *)(&s->bonldma))[addr / sizeof(uint32_t)]; =20 return val; } @@ -377,7 +379,7 @@ static void bonito_ldma_writel(void *opaque, hwaddr add= r, return; } =20 - ((uint32_t *)(&s->bonldma))[addr/sizeof(uint32_t)] =3D val & 0xfffffff= f; + ((uint32_t *)(&s->bonldma))[addr / sizeof(uint32_t)] =3D val & 0xfffff= fff; } =20 static const MemoryRegionOps bonito_ldma_ops =3D { @@ -400,7 +402,7 @@ static uint64_t bonito_cop_readl(void *opaque, hwaddr a= ddr, return 0; } =20 - val =3D ((uint32_t *)(&s->boncop))[addr/sizeof(uint32_t)]; + val =3D ((uint32_t *)(&s->boncop))[addr / sizeof(uint32_t)]; =20 return val; } @@ -414,7 +416,7 @@ static void bonito_cop_writel(void *opaque, hwaddr addr, return; } =20 - ((uint32_t *)(&s->boncop))[addr/sizeof(uint32_t)] =3D val & 0xffffffff; + ((uint32_t *)(&s->boncop))[addr / sizeof(uint32_t)] =3D val & 0xffffff= ff; } =20 static const MemoryRegionOps bonito_cop_ops =3D { @@ -446,7 +448,8 @@ static uint32_t bonito_sbridge_pciaddr(void *opaque, hw= addr addr) cfgaddr =3D addr & 0xffff; cfgaddr |=3D (s->regs[BONITO_PCIMAP_CFG] & 0xffff) << 16; =20 - idsel =3D (cfgaddr & BONITO_PCICONF_IDSEL_MASK) >> BONITO_PCICONF_IDSE= L_OFFSET; + idsel =3D (cfgaddr & BONITO_PCICONF_IDSEL_MASK) >> + BONITO_PCICONF_IDSEL_OFFSET; devno =3D ctz32(idsel); funno =3D (cfgaddr & BONITO_PCICONF_FUN_MASK) >> BONITO_PCICONF_FUN_OF= FSET; regno =3D (cfgaddr & BONITO_PCICONF_REG_MASK) >> BONITO_PCICONF_REG_OF= FSET; @@ -550,7 +553,7 @@ static void pci_bonito_set_irq(void *opaque, int irq_nu= m, int level) } =20 /* map the original irq (0~3) to bonito irq (16~47, but 16~31 are unused) = */ -static int pci_bonito_map_irq(PCIDevice * pci_dev, int irq_num) +static int pci_bonito_map_irq(PCIDevice *pci_dev, int irq_num) { int slot; =20 @@ -618,7 +621,10 @@ static void bonito_realize(PCIDevice *dev, Error **err= p) SysBusDevice *sysbus =3D SYS_BUS_DEVICE(s->pcihost); PCIHostState *phb =3D PCI_HOST_BRIDGE(s->pcihost); =20 - /* Bonito North Bridge, built on FPGA, VENDOR_ID/DEVICE_ID are "undefi= ned" */ + /* + * Bonito North Bridge, built on FPGA, + * VENDOR_ID/DEVICE_ID are "undefined" + */ pci_config_set_prog_interface(dev->config, 0x00); =20 /* set the north bridge register mapping */ --=20 2.7.4 From nobody Tue May 14 16:29:43 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1576500599; cv=none; d=zohomail.com; s=zohoarc; b=gPXAm5HFeugRFzELxJnUCY94oD8Ei8+CaBn1ZNaEO0oDZKgJpY4d1sjHApkkLF0thHxYHV1WauGtP+VkNC3Os1jg+joJoNcxKrq9TSM5JYA+ky12/GplaOfNkMHlIOrEz9MpVF+QaS007tDo15aMMX01DH2fFGhU8DzEgxVvxFI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576500599; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=P0rkCZqwNfp+9NACbswCQCU5/uCNzsbvSBHXs/8PP/8=; b=MSGtDNCVuAIS6Zzhrkr+xKSEQeiyfTGvMAEKhgRlK2Xa1dSvsJSwpJKM9Hbqw1sYoXVBsDIFfjLoVUJGWxmOGEz/IR9or/MdVrZj5YD8EKi3F415b+b2MNWHBH7spJHg+V5WNfy4KPmswUsYlEUpKYBpnnInz5FIg1KfD/IeDXg= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1576500599060336.43885256519604; Mon, 16 Dec 2019 04:49:59 -0800 (PST) Received: from localhost ([::1]:52924 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igpoz-0005ZH-R6 for importer@patchew.org; Mon, 16 Dec 2019 07:49:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58841) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igpjR-0006kg-4m for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igpjN-0006w2-T1 for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:12 -0500 Received: from mx2.rt-rk.com ([89.216.37.149]:57763 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1igpjN-0006vC-Mf for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:09 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id DAF121A20EF; Mon, 16 Dec 2019 13:43:01 +0100 (CET) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.14.106]) by mail.rt-rk.com (Postfix) with ESMTPSA id AD72A1A20DF; Mon, 16 Dec 2019 13:43:01 +0100 (CET) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Subject: [PULL 06/11] hw/mips: Deprecate the r4k machine Date: Mon, 16 Dec 2019 13:42:47 +0100 Message-Id: <1576500172-11264-7-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1576500172-11264-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1576500172-11264-1-git-send-email-aleksandar.markovic@rt-rk.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 89.216.37.149 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" From: Philippe Mathieu-Daud=C3=A9 The r4k machine was introduced in 2005 (6af0bf9c7) and its last logical change was in 2005 (9542611a6). After that, one can count 164 maintenance commits (QEMU API changes) with the exception of 1 fix in 2015 (memory leak, commit 3ad9fd5a). This machine was introduced as a proof of concept to run a MIPS CPU. Two years later, the Malta machine was added (commit 5856de80), modeling a real platform. Note also this machine has no specification except 5 lines in the header of this file: * emulates a simple machine with ISA-like bus. * ISA IO space mapped to the 0x14000000 (PHYS) and * ISA memory at the 0x10000000 (PHYS, 16Mb in size). * All peripherial devices are attached to this "bus" with * the standard PC ISA addresses. The Linux kernel support for this machine has been dropped more than 10 years ago in commit 302922e5. It is time to deprecate this obsolete machine. Users are recommended to use the Malta board, and its hardware is well documented. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Markovic Acked-by: Aurelien Jarno Message-Id: <20191125104103.28962-1-philmd@redhat.com> --- MAINTAINERS | 2 +- hw/mips/mips_r4k.c | 1 + qemu-deprecated.texi | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 5e5e3e5..3b3a88e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -972,7 +972,7 @@ F: hw/net/mipsnet.c R4000 M: Aurelien Jarno R: Aleksandar Rikalo -S: Maintained +S: Obsolete F: hw/mips/mips_r4k.c =20 Fulong 2E diff --git a/hw/mips/mips_r4k.c b/hw/mips/mips_r4k.c index d1f5d6b..3891be6 100644 --- a/hw/mips/mips_r4k.c +++ b/hw/mips/mips_r4k.c @@ -307,6 +307,7 @@ void mips_r4k_init(MachineState *machine) =20 static void mips_machine_init(MachineClass *mc) { + mc->deprecation_reason =3D "use malta machine type instead"; mc->desc =3D "mips r4k platform"; mc->init =3D mips_r4k_init; mc->block_default_type =3D IF_IDE; diff --git a/qemu-deprecated.texi b/qemu-deprecated.texi index 8471eef..f909be5 100644 --- a/qemu-deprecated.texi +++ b/qemu-deprecated.texi @@ -261,6 +261,11 @@ The 'scsi-disk' device is deprecated. Users should use= 'scsi-hd' or =20 @section System emulator machines =20 +@subsection mips r4k platform (since 4.2) + +This machine type is very old and unmaintained. Users should use the 'malt= a' +machine type instead. + @subsection pc-0.12, pc-0.13, pc-0.14 and pc-0.15 (since 4.0) =20 These machine types are very old and likely can not be used for live migra= tion --=20 2.7.4 From nobody Tue May 14 16:29:43 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1576500765; cv=none; d=zohomail.com; s=zohoarc; b=ZJLdjNzU+bLw74SpHjUZLFt5nDdVBQs9cTwwUTCze+wy1pGSU1kNa1hFv3WABmI45T5sKidyaPLi0JugxD2+ZIlmzPfv8PrMUa5L4fEfV6dgjv+2jnB4Yt6CEKsIEX+PA/dfPu26KeaBcZntoUor9UrbjqhM0e4kyuc1YVufUHE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576500765; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=t0xo1VXkmHpmlV0+xSjgYxMe2BmEJELed+LjaJpa0ew=; b=KcXsQgFJraH7E7yKFhMDnjmXkdj5U7bvr5EyyJzvE2wdjeVqqqlGassJcZzedDKl2q6SvnLs6OatA0Vib1zVeqXak6r45bU9GphBy1oS4m86b9TvNOCpg+SniTVkZdZQR7u94BrPsqfb5bADBDVsXF9FEa85TLD2c/1Vu/VnSps= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1576500765416931.310484285946; Mon, 16 Dec 2019 04:52:45 -0800 (PST) Received: from localhost ([::1]:52984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igprg-0001AV-5I for importer@patchew.org; Mon, 16 Dec 2019 07:52:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58888) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igpjT-0006m3-BS for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igpjO-0006wv-MD for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:15 -0500 Received: from mx2.rt-rk.com ([89.216.37.149]:57796 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1igpjO-0006vJ-Dv for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:10 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id E9D1F1A20F1; Mon, 16 Dec 2019 13:43:01 +0100 (CET) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.14.106]) by mail.rt-rk.com (Postfix) with ESMTPSA id B78621A20F3; Mon, 16 Dec 2019 13:43:01 +0100 (CET) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Subject: [PULL 07/11] MAINTAINERS: Add a section on UI translation Date: Mon, 16 Dec 2019 13:42:48 +0100 Message-Id: <1576500172-11264-8-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1576500172-11264-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1576500172-11264-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 89.216.37.149 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic There should be a person who will quickly evaluate new UI translation, and find a way to update existing ones should something changes in UI. Signed-off-by: Aleksandar Markovic Message-Id: <1575982519-29852-2-git-send-email-aleksandar.markovic@rt-rk.co= m> --- MAINTAINERS | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 3b3a88e..ac686e2 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2715,6 +2715,10 @@ M: Daniel P. Berrange S: Odd Fixes F: scripts/git-submodule.sh =20 +UI translations +M: Aleksandar Markovic +F: po/*.po + Sphinx documentation configuration and build machinery M: Peter Maydell S: Maintained --=20 2.7.4 From nobody Tue May 14 16:29:43 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1576500703; cv=none; d=zohomail.com; s=zohoarc; b=h1Jvz8K45GgqvIKmI2GosY8jbhL9jbQxUeglA3y1Cs7Aax0xyfP7wM9uu9zKKTYvOFMKLIopTwmRSebLaM7JxE/RnZ5jb6h1KN1TC9BbCKkobNVuN4JrG5sATtjlLU2BHesB2ogHzYtflO6N4btTB95YFKpPzJJ49kIJvSW32+w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576500703; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=D6+LIptDz9vH/K3/tv0BLIwv7OKjDprhhDoa3Fw4jVY=; b=bOU3m4yba2b6VhcHqLjI/jzYl7oeVQeVjga2tHkmGf+RKdm/VLKwXkSS3XZ2vU5ZU8ij+Y/b8JLoV11hvSpN2YC4jV7kgYUS0bNw73rxXCV0fCh/GrOXS5RPBytHuAn4ZqS//gBedVeo86qRmT45j9MLG9uREg8hEqB8/kfL2oc= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1576500703083434.64683853566703; Mon, 16 Dec 2019 04:51:43 -0800 (PST) Received: from localhost ([::1]:52962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igpqf-0007xm-MS for importer@patchew.org; Mon, 16 Dec 2019 07:51:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58856) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igpjR-0006l7-LK for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igpjP-0006xd-LR for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:13 -0500 Received: from mx2.rt-rk.com ([89.216.37.149]:57797 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1igpjP-0006vI-Ed for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:11 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id ED41F1A20DF; Mon, 16 Dec 2019 13:43:01 +0100 (CET) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.14.106]) by mail.rt-rk.com (Postfix) with ESMTPSA id BEACE1A20FB; Mon, 16 Dec 2019 13:43:01 +0100 (CET) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Subject: [PULL 08/11] MAINTAINERS: Adjust maintainership for Fulong 2E board Date: Mon, 16 Dec 2019 13:42:49 +0100 Message-Id: <1576500172-11264-9-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1576500172-11264-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1576500172-11264-1-git-send-email-aleksandar.markovic@rt-rk.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 89.216.37.149 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Change the maintainership for Fulong 2E board to improve its quality. Signed-off-by: Aleksandar Markovic Acked-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <1575982519-29852-3-git-send-email-aleksandar.markovic@rt-rk.co= m> --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index ac686e2..8b059f4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -976,8 +976,8 @@ S: Obsolete F: hw/mips/mips_r4k.c =20 Fulong 2E +M: Philippe Mathieu-Daud=C3=A9 M: Aleksandar Markovic -R: Aleksandar Rikalo S: Odd Fixes F: hw/mips/mips_fulong2e.c F: hw/isa/vt82c686.c --=20 2.7.4 From nobody Tue May 14 16:29:43 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1576500603; cv=none; d=zohomail.com; s=zohoarc; b=SXhgoo+fPWbzarsNy4NK0h6l/0S9z3Z37o+iLjkZ6oTF7Q1Zt+Abud4GATk5FW49SW7JLIN4r9At/kli1zvKg4UGGmQcioY/C6P3mFTNa61I/RurYQQhj1sIuDZttz5QzDyQ7+MGZbztcDHHkUO3mzzI493Dz0JN7UxbNE3MIA0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576500603; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=hxRh/aewqvKPXd1O9C+taIB2+UYzSWFDEz/MvUgeivQ=; b=KXUue8/y+4v/A9kXZx7hJGtTBU1DSn2s4kzXdQagDassgvZF+hpfYL7oM4KrQLHxIR0//pqeuimjeb4hdbgwCj40s3lmBgVXqsW4r2Yv02vyV2MttAwWV69r6fw/QYvGDI7PNGBQ4gof8IUaBbkm4hbLUgfU4Byj7Txz2UIWS2k= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 15765006031771013.924766067236; Mon, 16 Dec 2019 04:50:03 -0800 (PST) Received: from localhost ([::1]:52928 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igpp3-0005gV-WF for importer@patchew.org; Mon, 16 Dec 2019 07:50:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58825) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igpjP-0006kc-R5 for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igpjO-0006x0-M6 for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:11 -0500 Received: from mx2.rt-rk.com ([89.216.37.149]:57799 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1igpjO-0006vK-EF for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:10 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 043A21A20EE; Mon, 16 Dec 2019 13:43:02 +0100 (CET) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.14.106]) by mail.rt-rk.com (Postfix) with ESMTPSA id C63441A20D0; Mon, 16 Dec 2019 13:43:01 +0100 (CET) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Subject: [PULL 09/11] MAINTAINERS: Adjust maintainership for Malta board Date: Mon, 16 Dec 2019 13:42:50 +0100 Message-Id: <1576500172-11264-10-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1576500172-11264-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1576500172-11264-1-git-send-email-aleksandar.markovic@rt-rk.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 89.216.37.149 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Change the maintainership for Malta board to improve its quality. Acked-by: Aurelien Jarno Signed-off-by: Aleksandar Markovic Acked-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <1575982519-29852-4-git-send-email-aleksandar.markovic@rt-rk.co= m> --- MAINTAINERS | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 8b059f4..7803fe7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -955,8 +955,9 @@ F: hw/display/jazz_led.c F: hw/dma/rc4030.c =20 Malta -M: Aurelien Jarno -R: Aleksandar Rikalo +M: Aleksandar Markovic +M: Philippe Mathieu-Daud=C3=A9 +R: Aurelien Jarno S: Maintained F: hw/mips/mips_malta.c F: hw/mips/gt64xxx_pci.c --=20 2.7.4 From nobody Tue May 14 16:29:43 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1576500697; cv=none; d=zohomail.com; s=zohoarc; b=m2pjbXIKe+5mxVB3NyzkjnwTVDi22q4FTVmpnPK15CjJfid5TpAaF4ekXDLo3TpR7BsGeRiEPdk3I56aDQcxyzMrseizTeAOjSmfJUa9SV7Hlohjf3a7O/SzTfUwe39cboNuT/RTNl59/rsW3Cda0lPNfvk1ltb+VbIJWC1rAjM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576500697; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=TvH6Ok40I1tB4oNDJM7uSwzW1PcGZf2fIZXEPJgD+Sc=; b=bNkWuiDhNqqm/sSl53Vi4AIgr2PwpjibagugqKojBY7OvjFy70snYhmwS1dFSxEFh35wGOZxQ8JCIqbWOzeQx6QH9oTgZrmZR7i1+QpBaxIxI6QkXsxp89TdNHFJDMOQqj2Va7VBHZZn+xgVhgSR9BYhPjPf2rFry2JgmQR0+SU= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1576500697314429.2973048105473; Mon, 16 Dec 2019 04:51:37 -0800 (PST) Received: from localhost ([::1]:52960 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igpqZ-0007qA-Uv for importer@patchew.org; Mon, 16 Dec 2019 07:51:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58884) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igpjS-0006m0-RU for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igpjO-0006wo-KO for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:14 -0500 Received: from mx2.rt-rk.com ([89.216.37.149]:57800 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1igpjO-0006vL-Dg for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:10 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 07E441A20F8; Mon, 16 Dec 2019 13:43:02 +0100 (CET) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.14.106]) by mail.rt-rk.com (Postfix) with ESMTPSA id CF9041A206A; Mon, 16 Dec 2019 13:43:01 +0100 (CET) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Subject: [PULL 10/11] MAINTAINERS: Add three files to Malta section Date: Mon, 16 Dec 2019 13:42:51 +0100 Message-Id: <1576500172-11264-11-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1576500172-11264-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1576500172-11264-1-git-send-email-aleksandar.markovic@rt-rk.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 89.216.37.149 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Add three files that were recently introduced in a refactoring, that Malta emulation relies on. They are added by this patch to Malta section, but they are not added to the general MIPS section, since they are really not MIPS-specific, and there may be some non-MIPS hardware using them in future. Signed-off-by: Aleksandar Markovic Acked-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <1575982519-29852-5-git-send-email-aleksandar.markovic@rt-rk.co= m> --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7803fe7..2af7313 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -959,8 +959,11 @@ M: Aleksandar Markovic M: Philippe Mathieu-Daud=C3=A9 R: Aurelien Jarno S: Maintained +F: hw/isa/piix4.c +F: hw/acpi/piix4.c F: hw/mips/mips_malta.c F: hw/mips/gt64xxx_pci.c +F: include/hw/southbridge/piix.h F: tests/acceptance/linux_ssh_mips_malta.py =20 Mipssim --=20 2.7.4 From nobody Tue May 14 16:29:43 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1576500385; cv=none; d=zohomail.com; s=zohoarc; b=iA2HOW6tZnXW1Myz9CriuwAJa854xvAeUKbrWStYOiwkEzL2fMZKKTnxer7F2cWOpsK22LxE84sKe2wEkCzb8+E5YuhqQXQhASN9ZKrRuq6/YLcT2ZcckpndrzBbGzKAmBHY36FDXRCf7+SnGoT3GbxNGhQA211fR75p5phBse0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576500385; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=xbUyCqvXO+5NlqfhngIw8WSnl/zdQFQvPMw+gvIj4F0=; b=hMxKe9uO3Ke//e8j7VXEhRlcF/6ihrEGJP0AsDWSzF5vfaBQB5Tt7MDF6vHZl2f0XDp+yQ3rYetfrjUgdfQDe5HX4MpOgPf5SyZYtp0cyFEY0hZaxZL8OhfJVH2AjfSv8J7fHemQHW639yTlqtEs3F6KKctAYqhi7iaCioulog4= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1576500385801601.5357634409474; Mon, 16 Dec 2019 04:46:25 -0800 (PST) Received: from localhost ([::1]:52882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igplX-0000M9-Up for importer@patchew.org; Mon, 16 Dec 2019 07:46:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58815) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igpjP-0006kT-LJ for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igpjO-0006wj-KL for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:11 -0500 Received: from mx2.rt-rk.com ([89.216.37.149]:57795 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1igpjO-0006vH-D9 for qemu-devel@nongnu.org; Mon, 16 Dec 2019 07:44:10 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 118691A206A; Mon, 16 Dec 2019 13:43:02 +0100 (CET) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.14.106]) by mail.rt-rk.com (Postfix) with ESMTPSA id D62191A1D72; Mon, 16 Dec 2019 13:43:01 +0100 (CET) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Subject: [PULL 11/11] MAINTAINERS: Add a file to MIPS section Date: Mon, 16 Dec 2019 13:42:52 +0100 Message-Id: <1576500172-11264-12-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1576500172-11264-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1576500172-11264-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 89.216.37.149 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic File tests/acceptance/linux_ssh_mips_malta.py is crucial for entire MIPS platform, so add it to the MIPS section. The maintainership will be shared with others. Signed-off-by: Aleksandar Markovic Message-Id: <1575982519-29852-6-git-send-email-aleksandar.markovic@rt-rk.co= m> --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2af7313..740401b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -221,6 +221,7 @@ F: include/hw/intc/mips_gic.h F: include/hw/mips/ F: include/hw/misc/mips_* F: include/hw/timer/mips_gictimer.h +F: tests/acceptance/linux_ssh_mips_malta.py F: tests/tcg/mips/ K: ^Subject:.*(?i)mips =20 --=20 2.7.4