X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fflash%2Fnor%2Fvirtual.c;h=3cb793e306942e2a1090edc0866f5dd1d57a0dd8;hb=refs%2Fchanges%2F88%2F3488%2F3;hp=1280a791efa400e0ff30fe3b62737861d7a728dc;hpb=9f0cba528a163645c8ecace413731c23310f2c26;p=openocd.git diff --git a/src/flash/nor/virtual.c b/src/flash/nor/virtual.c index 1280a791ef..3cb793e306 100644 --- a/src/flash/nor/virtual.c +++ b/src/flash/nor/virtual.c @@ -13,9 +13,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., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * along with this program. If not, see . * ***************************************************************************/ #ifdef HAVE_CONFIG_H @@ -46,6 +44,7 @@ static void virtual_update_bank_info(struct flash_bank *bank) bank->size = master_bank->size; bank->chip_width = master_bank->chip_width; bank->bus_width = master_bank->bus_width; + bank->default_padded_value = master_bank->default_padded_value; bank->num_sectors = master_bank->num_sectors; bank->sectors = master_bank->sectors; } @@ -118,7 +117,7 @@ static int virtual_erase(struct flash_bank *bank, int first, int last) return ERROR_OK; } -static int virtual_write(struct flash_bank *bank, uint8_t *buffer, +static int virtual_write(struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count) { struct flash_bank *master_bank = virtual_get_master_bank(bank);